| OrchestratorConfigSetAsyncOutputConsumer Method (FuncExternalLine, IGlobalCache, Task) |
Designates an asynchronous output consumer action.
This overload of the
SetAsyncOutputConsumer method is intended for use in case of any output 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 SetAsyncOutputConsumer(
Func<ExternalLine, IGlobalCache, Task> consumerToSet
)
Public Sub SetAsyncOutputConsumer (
consumerToSet As Func(Of ExternalLine, IGlobalCache, Task)
)
Parameters
- consumerToSet
- Type: SystemFuncExternalLine, IGlobalCache, Task
An asynchronous action (task-returning function) that takes 2 parameters: (1) an ExternalLine object , 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(async (ExternalLine l, IGlobalCache gc) => { ... await ... });
config.SetOutputConsumer(Async Function(l As ExternalLine, gc As IGlobalCache) ... Await ... )
See Also