Class MemoryDestination<TInput>
A destination in memory - it will store all data in a collection that you assign to the Data property. By default, a List is used to store th data. If you need to access the data concurrently while rows are still written into the target, see the ConcurrentMemoryDestination.
Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public class MemoryDestination<TInput> : DataFlowDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskType Parameters
| Name | Description |
|---|---|
| TInput | Type of ingoing data. |
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.DataConstructors
MemoryDestination()
Declaration
public MemoryDestination()Properties
ClearDataOnStart
Declaration
public bool ClearDataOnStart { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
Data
The generic List<T> that will store all rows of incoming data in memory.
Declaration
public ICollection<TInput> Data { get; set; }Property Value
| Type | Description |
|---|---|
| ICollection<TInput> |
Methods
AddData(TInput)
Declaration
protected virtual void AddData(TInput row)Parameters
| Type | Name | Description |
|---|---|---|
| TInput | row |
CheckParameter()
Declaration
protected override void CheckParameter()Overrides
CleanUpOnFaulted(Exception)
Declaration
protected override void CleanUpOnFaulted(Exception e)Parameters
| Type | Name | Description |
|---|---|---|
| Exception | e |
Overrides
CleanUpOnSuccess()
Declaration
protected override void CleanUpOnSuccess()Overrides
InitComponent()
Declaration
protected override void InitComponent()Overrides
Reset()
Declaration
protected override void Reset()