IHostCancellationManager Interface

Definition

Provides an abstraction for getting a cancellation token that fires when the hosting app domain shuts down. This allows situations where the host needs to inform an ongoing task that it is about to shut down.

public interface IHostCancellationManager
type IHostCancellationManager = interface
Public Interface IHostCancellationManager
Derived

Properties

HostCancellationToken

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).

Applies to