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.