BackgroundService Gotcha: Application Lifetime

added by DotNetKicks
6/5/2020 1:52:12 PM

537 Views

OK, I guess I do have a series on my hands. This one isn't so much a "gotcha" as it is a common mistake. Hosted services (including BackgroundServices) have a lifetime that is independent from their host. This means that if a BackgroundService exits, its host will not exit.


0 comments