IHostCancellationManager.HostCancellationToken Property

Definition

Provide a CancellationToken which will fire when the service is about to shut down. This signals to the service that it has a short amount of time to finish up (typically 30 seconds).

public System.Threading.CancellationToken HostCancellationToken { get; }
member this.HostCancellationToken : System.Threading.CancellationToken
Public ReadOnly Property HostCancellationToken As CancellationToken

Property Value

A CancellationToken which will fire when the host is about to shut down.

Applies to