Click or drag to resize

OrchestratorConfigSetOutputConsumer Method (ActionString, IGlobalCache)

Designates an output consumer action. This overload of the SetOutputConsumer method is intended for use in case of textual output (such as Delimited, Flat, etc.) to a single target when access to the global cache is needed.

Namespace:  Mavidian.DataConveyer.Orchestrators
Assembly:  DataConveyer (in DataConveyer.dll) Version: 3.4.6+1324144ff7
Syntax
public void SetOutputConsumer(
	Action<string, IGlobalCache> consumerToSet
)

Parameters

consumerToSet
Type: SystemActionString, IGlobalCache
An action (void function) that takes 2 parameters: (1) a line of text, and (2) a reference to global cache. The action 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((string l, IGlobalCache gc) => { ... });
See Also