Class InMemoryPipelineSource<T>
Provides a minimal in-memory source for tests and simple manual publication scenarios.
public class InMemoryPipelineSource<T> : PipelineSourceBase<T>, IPipelineSource<T>, IFlowSource<PipelineContainer<T>>, IPipelineExecutionConfigurable where T : PipelineRecord
Type Parameters
T
- Inheritance
-
InMemoryPipelineSource<T>
- Implements
- Inherited Members
Methods
Initialize()
Provides an opportunity for the source to initialize transport-specific state.
protected override void Initialize()
MainLoop(CancellationTokenSource)
Executes the main source loop.
protected override Task MainLoop(CancellationTokenSource cancellationToken)
Parameters
cancellationTokenCancellationTokenSourceThe runtime cancellation source used to stop the source.
Returns
- Task
A task that completes when the source loop exits.