Class InterruptionTokenSource
Creates and controls an InterruptionToken, similar to CancellationTokenSource. Call Cancel() to request cancellation of the associated token.
Implements
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class InterruptionTokenSource : IDisposable
Constructors
InterruptionTokenSource()
Initializes a new instance of the InterruptionTokenSource class.
Declaration
public InterruptionTokenSource()
Properties
IsCancellationRequested
Gets whether cancellation has been requested.
Declaration
public bool IsCancellationRequested { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Token
Gets the InterruptionToken associated with this source.
Declaration
public InterruptionToken Token { get; }
Property Value
| Type | Description |
|---|---|
| InterruptionToken |
Methods
Cancel()
Requests cancellation of the associated token.
Declaration
public void Cancel()
Dispose()
Releases resources used by this instance.
Declaration
public void Dispose()