Show / Hide Table of Contents

Class LinkedTokenSourceFactory

Represents helper methods for working with linked cancellation tokens.

Inheritance
Object
LinkedTokenSourceFactory
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public static class LinkedTokenSourceFactory

Methods

| Improve this Doc View Source

LinkTo(ref CancellationToken, CancellationToken)

Links two cancellation token.

Declaration
public static CancellationTokenSource LinkTo(this ref CancellationToken first, CancellationToken second)
Parameters
Type Name Description
CancellationToken first

The first cancellation token. Can be modified by this method.

CancellationToken second

The second cancellation token.

Returns
Type Description
CancellationTokenSource

The linked token source; or null if first or second is not cancelable.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX