Discussed: We may want to create follow-up issues, probably for .NET MAUI and ASP.NET Core, to "attach" to the application model's own "lifetime" events, like IHostApplicationLifetime or "generic Host"-based apps like ASP.NET Core and .NET Workers.
Originally posted by @Flash0ver in #4489