Title here
Summary here
Define a source based on a generic .NET collection. This could be a List<T> or any other IEnumerable<T>. By default, an empty List<T> is created which can be filled with data.
public class MemorySource<TOutput> : DataFlowExecutableSource<TOutput>, IDataFlowExecutableSource<TOutput>, IDataFlowSource<TOutput>, IDataFlowExecutableSource, IDataFlowSource, IDataFlowComponent, ILoggableTask
Name | Description |
---|---|
TOutput | Type of outgoing data. |
MemorySource<MyRow> source = new MemorySource<MyRow>();
source.Data = new List<MyRow>()
{
new MyRow() { Id = 1, Value = "Test1" },
new MyRow() { Id = 2, Value = "Test2" },
new MyRow() { Id = 3, Value = "Test3" }
};
public MemorySource()
public MemorySource(IEnumerable<TOutput> data)
Type | Name | Description |
---|---|---|
IEnumerable<TOutput> | data | Set the source collection and stores it in Data |
The .NET collection that is used to read the data from.
public IEnumerable<TOutput> Data { get; set; }
Type | Description |
---|---|
IEnumerable<TOutput> |
If the source collection implements IList<T> then this property will convert the collection into this interface type.
public IList<TOutput> DataAsList { get; set; }
Type | Description |
---|---|
IList<TOutput> |
protected override void CheckParameter()
protected override void CleanUpOnFaulted(Exception e)
Type | Name | Description |
---|---|---|
Exception | e |
protected override void CleanUpOnSuccess()
protected override void OnExecutionDoAsyncWork()
protected override void Reset()