Click or drag to resize

OrchestratorConfigSetAsyncOutputConsumer Method (FuncTupleExternalLine, Int32, IGlobalCache, Task)

Designates an asynchronous output consumer action. This is the universal overload of the SetAsyncOutputConsumer method. It may be used in case of any output to multiple targets when access to the global cache is needed. In most practical scenarios, other overloads are more suitable (easier to implement).

Namespace:  Mavidian.DataConveyer.Orchestrators
Assembly:  DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax
public void SetAsyncOutputConsumer(
	Func<Tuple<ExternalLine, int>, IGlobalCache, Task> consumerToSet
)

Parameters

consumerToSet
Type: SystemFuncTupleExternalLine, Int32, IGlobalCache, Task
An asynchronous action (task-returning function) that takes 2 parameters: (1) a tuple containing an ExternalLine object and a source number, and (2) a reference to global cache.
Remarks
When the method parameter (the consumerToSet action) is expressed using lambda expression, it may be necessary to disambiguate the type of the actions's argument; for example:
config.SetOutputConsumer(async (Tuple<ExternalLine, int> tpl, IGlobalCache gc) => { ... await ... });
See Also