AsyncFuncFactory Constructor
Definition
- Assemblies
- Cuemon.Core.dll
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
methodFunc<TTuple, CancellationToken, Task<TResult>>The function delegate to invoke.
tupleTTupleThe 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
methodFunc<TTuple, CancellationToken, Task<TResult>>The function delegate to invoke.
tupleTTupleThe n-tuple argument of
method.originalDelegateDelegateThe original delegate wrapped by
method.