Interface IMultiplexedCancellationTokenSource
Represents multiplexed cancellation token source.
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public interface IMultiplexedCancellationTokenSource : IDisposable
Properties
View SourceCancellationOrigin
Gets the cancellation origin.
Declaration
CancellationToken CancellationOrigin { get; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Token
Gets the multiplexed token.
Declaration
CancellationToken Token { get; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Methods
View SourceCreate(bool)
Creates a token source for the specified cancellation token state.
Declaration
public static IMultiplexedCancellationTokenSource Create(bool canceled)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | canceled | The canceled state for the token. |
Returns
| Type | Description |
|---|---|
| IMultiplexedCancellationTokenSource | The token source that represents the specific cancellation token state. |