CustomDestination

Class CustomDestination

Define your own destination block. This block accepts all data from the flow and sends each incoming row to your custom Action, along with a count of processed rows.

Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class CustomDestination : CustomDestination<ExpandoObject>, IDataFlowDestination<ExpandoObject>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Examples
  List<MyRow> rows = new List<MyRow>();
                       var dest = new CustomDestination<MyRow>();
                       dest.WriteAction = (row, progressCount) => rows.Add(row);

Constructors

CustomDestination()

Declaration
    public CustomDestination()

CustomDestination(Action<ExpandoObject, int>)

Declaration
    public CustomDestination(Action<ExpandoObject, int> writeAction)
Parameters
TypeNameDescription
Action<ExpandoObject, int>writeAction

Sets the WriteAction

Implements