IInterruptionToken

IInterruptionToken interface

This class represents the token to use for signaling long running tasks whether the interruption was requested.

public interface IInterruptionToken

Properties

NameDescription
IsInterruptionRequested { get; }Returns Boolean.true if interruption was requested.

Methods

NameDescription
ThrowIfInterruptionRequested()Throws an OperationCanceledException if interruption was requested. Thrown when interruption was requested.

See Also