IHostApplicationLifetime IHostApplicationLifetime IHostApplicationLifetime Interface

Definition

Allows consumers to be notified of application lifetime events.

public interface IHostApplicationLifetime
type IHostApplicationLifetime = interface
Public Interface IHostApplicationLifetime
Derived

Properties

ApplicationStarted ApplicationStarted ApplicationStarted

Triggered when the application host has fully started.

ApplicationStopped ApplicationStopped ApplicationStopped

Triggered when the application host is performing a graceful shutdown. Shutdown will block until this event completes.

ApplicationStopping ApplicationStopping ApplicationStopping

Triggered when the application host is performing a graceful shutdown. Shutdown will block until this event completes.

Methods

StopApplication() StopApplication() StopApplication()

Requests termination of the current application.

Applies to