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
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class MemoryDestination<TInput> : DataFlowDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent
Type Parameters
NameDescription
TInput

Type of ingoing data.

Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

Constructors

MemoryDestination()

Declaration
    public MemoryDestination()
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

Properties

Data

The generic List<T> that will store all rows of incoming data in memory.

Declaration
    public ICollection<TInput> Data { get; set; }
Property Value
TypeDescription
System.Collections.Generic.ICollection<T><TInput>

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
string
Overrides

Methods

AddData(TInput)

Declaration
    protected virtual void AddData(TInput row)
Parameters
TypeNameDescription
TInputrow
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
System.Exceptione
Overrides
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

InitComponent()

Declaration
    protected override void InitComponent()
Overrides
ETLBox.DataFlow.DataFlowDestination<TInput>.InitComponent()
Examples
MemoryDestination<MySimpleRow> dest = new MemoryDestination<MySimpleRow>();
//data is accessible in dest.Data         

Implements