ILifetimeService
Ecng.ComponentModel
Interface for application lifecycle management. Provides abstraction over shutdown and restart operations.
Propriedades
Token
public CancellationToken Token { get; }
value = iLifetimeService.Token
Gets the cancellation token that is triggered when the application is shutting down.