Class ConcurrentMemoryDestination<TInput>
A destination in memory - it will store all data in a BlockingCollection<T>
The BlockingCollection<T> allows you to access the data concurrently while rows are still written into the target.
If you don't need to work with your data before the flow finishes, you can use
the MemoryDestination which uses a regular List<T>.
Inheritance
ConcurrentMemoryDestination<TInput>
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
public class ConcurrentMemoryDestination<TInput> : MemoryDestination<TInput>, IDataFlowLogging, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
Name | Description |
---|
TInput | Type of ingoing data. |
Constructors
ConcurrentMemoryDestination()
Declaration
public ConcurrentMemoryDestination()
Properties
ClearDataOnStart
Declaration
public bool ClearDataOnStart { get; }
Property Value
Data
Declaration
public BlockingCollection<TInput> Data { get; set; }
Property Value
Methods
AddData(TInput)
Declaration
protected override void AddData(TInput row)
Parameters
Type | Name | Description |
---|
TInput | row | |
Overrides
CleanUpOnFaulted(Exception)
Declaration
protected override void CleanUpOnFaulted(Exception e)
Parameters
Overrides
CleanUpOnSuccess()
Declaration
protected override void CleanUpOnSuccess()
Overrides
Reset()
Declaration
protected override void Reset()
Overrides
Implements