ILifetimeService

Ecng.ComponentModel

Interface for application lifecycle management. Provides abstraction over shutdown and restart operations.

Eigenschaften

Token
public CancellationToken Token { get; }
value = iLifetimeService.Token

Gets the cancellation token that is triggered when the application is shutting down.

Methoden

Restart
public void Restart()
iLifetimeService.Restart()

Initiates application restart.

Shutdown
public void Shutdown()
iLifetimeService.Shutdown()

Initiates application shutdown.