关于[BackgroundService Gotcha: Application Lifetime]的摘要:
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. And a host will happily continue running even if all its services have exited.
原文地址: https://blog.stephencleary.com/2020/06/backgroundservice-gotcha-application-lifetime.html