CancellationDisposable
Represents a disposable resource that has an associated CancellationToken that will be set to the cancellation requested state upon disposal.
Gets a value that indicates whether the object is disposed.
Gets the CancellationToken used by this CancellationDisposable.
Initializes a new instance of the CancellationDisposable class that uses an existing CancellationTokenSource.
public CancellationDisposable()
Initializes a new instance of the CancellationDisposable class that uses a new CancellationTokenSource.
Cancels the underlying CancellationTokenSource.