Table of Contents

CancellationTokenProvider Property

Definition

Namespace
Cuemon.Threading
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Threading/AsyncOptions.cs

CancellationTokenProvider

Gets or sets the function delegate that is invoked when a CancellationToken is requested.

public Func<CancellationToken> CancellationTokenProvider { get; set; }

Property Value

Func<CancellationToken>

The function delegate that is invoked when a CancellationToken is requested.

Remarks

This function delegate is meant for edge cases where this instance might be stored as a singleton or similar use case.