Microsoft.Extensions.Hosting.Internal.ApplicationLifetime
Allows consumers to perform cleanup during a graceful shutdown.
Gets a cancellation token. Triggered when the application host has fully started and is about to wait
for a graceful shutdown.
Gets a cancellation token. 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.
Gets a cancellation token. Triggered when the application host is performing a graceful shutdown.
Request might still be in flight. Shutdown will block until this event completes.
Initializes an ApplicationLifetime instance using the specified logger.
Signals the ApplicationStarted event and blocks until it completes.
Signals the ApplicationStopped event and blocks until it completes.
Signals the ApplicationStopping event and blocks until it completes.