Class DataFlowExecutableSource<TOutput>
Base implementation for a source that can be executed.
Inheritance
DataFlowExecutableSource<TOutput>
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax#
Type Parameters
Fields
SourceTask#
Declaration
Field Value
Properties
Buffer#
Declaration
Property Value
CompleteManually#
Declaration
Property Value
Limit#
Reads data from the source until the limit is reached. Default is 0 (=no limit).
Declaration
Property Value
ProgressCountIsExceedingLimit#
Declaration
Property Value
ProgressCountIsInLimit#
Declaration
Property Value
SourceBlock#
SourceBlock from the underlying TPL.Dataflow which is used as output buffer for the component.
Declaration
Property Value
Overrides
Methods
Execute()#
Starts the data flow for all connected components (also for other sources in the network).
Waits until all destinations run to completion.
Declaration
Execute(CancellationToken)#
Declaration
Parameters
Type | Name | Description |
---|
CancellationToken | cancellationToken | A cancellation token which can be used to cancel the task of component (and all subsequent components in the flow) |
ExecuteAsync()#
Starts the data flow asynchronously.
Declaration
Returns
Type | Description |
---|
Task | Returns an awaitable task that completes or faults when the flow ran to completion. |
ExecuteAsync(CancellationToken)#
Starts the data flow asynchronously.
Declaration
Parameters
Type | Name | Description |
---|
CancellationToken | cancellationToken | A cancellation token which can be used to cancel the task of component (and all subsequent components in the flow) |
Returns
Type | Description |
---|
Task | Returns an awaitable task that completes or faults when the flow ran to completion. |
InitComponent()#
Declaration
Overrides
OnExecutionDoAsyncWork()#
Declaration
StartAsync(CancellationToken?)#
Starts the source asynchronously. Will return only the task for the source component, which completes when all data was posted
into the data flow.
Declaration
Parameters
Type | Name | Description |
---|
CancellationToken? | cancellationToken | A cancellation token which can be used to cancel the task of component (and all subsequent components in the flow) |
Returns
Type | Description |
---|
Task | Returns an awaitable task that completes or faults when the source ran to completion. |
Implements#