Class PipelineProcessor

Assembly: redb.Route.dll

Executes a list of processors sequentially. The backbone of route processing.
Stops early if exchange.IsStopped or cancellation is requested.

public class PipelineProcessor : IProcessor

Inheritance

Object→PipelineProcessor

Implements

Properties

Processors

Gets the list of processors in this pipeline.

public IReadOnlyList<IProcessor> Processors { get; }

Methods

Add(IProcessor)

Adds a processor to the end of the pipeline.

public void Add(IProcessor processor)

AddRange(IEnumerable<IProcessor>)

Adds multiple processors to the pipeline.

public void AddRange(IEnumerable<IProcessor> processors)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)