Application Shutdown in ASP.NET Core

Handling flushing of the application insights messages when core shutsdown

When running a ASP.NET Core web application there are cases when you need to do some logic when the application stops. A example: you are logging and have to flush the last message to the log (Application Insights). In that case you need can add an event in the Configure method. In this post I show a short example of how to do this.
Continue reading “Application Shutdown in ASP.NET Core”