Click or drag to resize

OrchestratorConfigSetAsyncOutputConsumer Method (FuncString, Task)

Designates an asynchronous output consumer action. This overload of the SetAsyncOutputConsumer method is intended for use in case of textual output (such as Delimited, Flat, etc.) to a single target 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<string, Task> consumerToSet
)

Parameters

consumerToSet
Type: SystemFuncString, Task
An asynchronous action (task-returning function) that takes a single parameter containing a line of text. The action has no access to global cache and is suitable in case of a single target (it will direct all output to target number 1).
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 (string l) => { ... await ... });
See Also