Table of Contents

AsyncFuncFactory Constructor

Definition

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

AsyncFuncFactory(Func<TTuple, CancellationToken, Task<TResult>>, TTuple)

Initializes a new instance of the AsyncFuncFactory<TTuple, TResult> class.

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

Parameters

method Func<TTuple, CancellationToken, Task<TResult>>

The function delegate to invoke.

tuple TTuple

The n-tuple argument of method.

AsyncFuncFactory(Func<TTuple, CancellationToken, Task<TResult>>, TTuple, Delegate)

Initializes a new instance of the AsyncFuncFactory<TTuple, TResult> class.

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

Parameters

method Func<TTuple, CancellationToken, Task<TResult>>

The function delegate to invoke.

tuple TTuple

The n-tuple argument of method.

originalDelegate Delegate

The original delegate wrapped by method.