• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class InterruptionTokenSource

Creates and controls an InterruptionToken, similar to CancellationTokenSource. Call Cancel() to request cancellation of the associated token.

Inheritance
object
InterruptionTokenSource
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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()

Implements

IDisposable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX