InterruptionToken class

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

public class InterruptionToken : IInterruptionToken


Name Description
static None { get; } Represents an empty interruption token. Long-running operations will never be interrupted via Interrupt when using this token.
IsInterruptionRequested { get; } Returns Boolean.true if interruption was requested.


Name Description
ThrowIfInterruptionRequested() Throws an OperationCanceledException if interruption was requested.

See Also