Title here
Summary here
Define your own source block. This block generates data from a your own custom written functions.
Name | Description |
---|---|
TOutput | Type of outgoing data. |
List<string> Data = new List<string>()
{
"Test1", "Test2", "Test3"
};
var source = new CustomSource<MyRow>();
source.ReadFunc = progressCount =>
{
return new MyRow()
{
Id = progressCount + 1,
Value = Data[progressCount]
};
return result;
};
source.ReadCompletedFunc = progressCount => progressCount >= Data.Count;
Type | Name | Description |
---|---|---|
Func<int, TOutput> | readFunc | Sets the ReadFunc |
Predicate<int> | readingCompleted | Sets the ReadingCompleted |
The function that returns a data row as output. An integer value with the current progress count is the input of the function.
Type | Description |
---|---|
Func<int, TOutput> |
This predicate returns true when all rows for the flow are successfully returned from the ReadFunc. An integer value with the current progress count is the input of the predicate.
Type | Description |
---|---|
Predicate<int> |
Type | Name | Description |
---|---|---|
Exception | e |