HostApplicationLifetime class abstract

Allows consumers to be notified of application lifetime events. This interface is not intended to be user-replaceable.

Implementers

Properties

applicationStarted CancellationToken
Triggered when the application host has fully started.
no setter
applicationStopped CancellationToken
Triggered when the application host has completed a graceful shutdown. The application will not exit until all callbacks registered on this token have completed.
no setter
applicationStopping CancellationToken
Triggered when the application host is starting a graceful shutdown. Shutdown will block until all callbacks registered on this token have completed.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stopApplication() → void
Requests termination of the current application.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited