Show / Hide Table of Contents

Interface IMultiplexedCancellationTokenSource

Represents multiplexed cancellation token source.

Inherited Members
IDisposable.Dispose()
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public interface IMultiplexedCancellationTokenSource : IDisposable

Properties

View Source

CancellationOrigin

Gets the cancellation origin.

Declaration
CancellationToken CancellationOrigin { get; }
Property Value
Type Description
CancellationToken
View Source

Token

Gets the multiplexed token.

Declaration
CancellationToken Token { get; }
Property Value
Type Description
CancellationToken

Methods

View Source

Create(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.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾