Class LinkedCancellationTokenSource
Gets cancellation token source that allows to obtain the token that causes cancellation.
Implements
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public abstract class LinkedCancellationTokenSource : CancellationTokenSource, IDisposable
Remarks
This source is not resettable. Calling of TryReset() may lead to unpredictable results.
Properties
| Edit this page View SourceCancellationOrigin
Gets the token caused cancellation.
Declaration
public CancellationToken CancellationOrigin { get; }
Property Value
Type | Description |
---|---|
CancellationToken |
Remarks
It is recommended to request this property after cancellation.
Methods
| Edit this page View SourceDispose(bool)
Releases the unmanaged resources used by the CancellationTokenSource class and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |