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.

Métodos

Restart
public void Restart()
iLifetimeService.Restart()

Initiates application restart.

Shutdown
public void Shutdown()
iLifetimeService.Shutdown()

Initiates application shutdown.