Click or drag to resize

OrchestratorConfigSetAsyncOutputConsumer Method (FuncTupleExternalLine, Int32, Task)

Designates an asynchronous output consumer action. This overload of the SetAsyncOutputConsumer method is intended for use in case of any output to multiple targets and no need to access the global cache.

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

Parameters

consumerToSet
Type: SystemFuncTupleExternalLine, Int32, Task
An asynchronous action (task-returning function) that takes a single parameter: a tuple containing an ExternalLine object and a corresponding target number. The action has no access 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) => { ... await ... });
See Also