Table of Contents

AsyncActionFactory Constructor

Definition

Namespace
Cuemon.Threading
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Threading/AsyncActionFactory.cs

AsyncActionFactory(Func<TTuple, CancellationToken, Task>, TTuple)

Initializes a new instance of the AsyncActionFactory<TTuple> class.

public AsyncActionFactory(Func<TTuple, CancellationToken, Task> method, TTuple tuple)

Parameters

method Func<TTuple, CancellationToken, Task>

The Task based function delegate to invoke.

tuple TTuple

The n-tuple argument of method.

AsyncActionFactory(Func<TTuple, CancellationToken, Task>, TTuple, Delegate)

Initializes a new instance of the AsyncActionFactory<TTuple> class.

public AsyncActionFactory(Func<TTuple, CancellationToken, Task> method, TTuple tuple, Delegate originalDelegate)

Parameters

method Func<TTuple, CancellationToken, Task>

The Task based function delegate to invoke.

tuple TTuple

The n-tuple argument of method.

originalDelegate Delegate

The original delegate wrapped by method.