Extending the shutdown timeout setting to ensure graceful IHostedService shutdown

added by DotNetKicks
5/12/2020 10:39:17 AM

317 Views

I was seeing an issue recently where our application wasn't running the StopAsync method in our IHostedService implementations when the app was shutting down. It turns out that this was due to some services taking too long to respond to the shutdown signal.


0 comments