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.
Inheritance
CustomDestination
Implements
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public class CustomDestination : CustomDestination<ExpandoObject>, IDataFlowLogging, 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
Type | Name | Description |
---|---|---|
Action<ExpandoObject, int> | writeAction | Sets the WriteAction |