IHostCancellationManager Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET