Allows consumers to perform cleanup during a graceful shutdown.
public interface IApplicationLifetime
type IApplicationLifetime = interface
Public Interface IApplicationLifetime
|ApplicationStarted ApplicationStarted ApplicationStarted||
Triggered when the application host has fully started and is about to wait for a graceful shutdown.
|ApplicationStopped ApplicationStopped ApplicationStopped||
Triggered when the application host is performing a graceful shutdown. All requests should be complete at this point. Shutdown will block until this event completes.
|ApplicationStopping ApplicationStopping ApplicationStopping||
Triggered when the application host is performing a graceful shutdown. Requests may still be in flight. Shutdown will block until this event completes.
|StopApplication() StopApplication() StopApplication()||
Requests termination of the current application.