Go to file
David Fowler 712c992ca8 Add BackgroundService, a base class for long running HostedServices (#1215)
* Add BackgroundService, a base class for long running HostedServices
- Today the IHostedService pattern is a StartAsync/StopAsync pattern. Neither of these
methods are supposed to return a long running task that represents an execution. If
you wanted to have some logic run on a timer every 5 minutes, it's unnatural to do so
with simple async idioms. This base class implements IHostedService and exposes
a pattern where a long running async Task can be returned.
- The token passed into ExecuteAsync represents the lifetime of the execution.
- StartAsync and StopAsync were made virtual to allow the derived type to
indicate Start failures.
- Added tests
2017-09-18 12:55:54 -07:00
build Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
samples Add BackgroundService, a base class for long running HostedServices (#1215) 2017-09-18 12:55:54 -07:00
shared Add extension methods in our test host package to streamline setup of apps. 2017-09-15 15:08:35 -07:00
src Add BackgroundService, a base class for long running HostedServices (#1215) 2017-09-18 12:55:54 -07:00
test Add BackgroundService, a base class for long running HostedServices (#1215) 2017-09-18 12:55:54 -07:00
.appveyor.yml
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
Directory.Build.props Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
Directory.Build.targets Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
Hosting.sln Add extension methods in our test host package to streamline setup of apps. 2017-09-15 15:08:35 -07:00
LICENSE.txt
NuGet.config Use PackageLineup to manage PackageReference versions 2017-08-29 09:55:55 -07:00
NuGetPackageVerifier.json Add extension methods in our test host package to streamline setup of apps. 2017-09-15 15:08:35 -07:00
README.md
build.cmd
build.ps1
build.sh
version.xml

README.md

Hosting

AppVeyor: AppVeyor

Travis: Travis

The Hosting repo contains code required to host an ASP.NET Core application, it is the entry point used when self-hosting an application.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.