Skip to content

PipelineBuilder<TBaseNode> Class

Definition

Fluent builder for a pipeline stage.

public sealed class PipelineBuilder<TBaseNode>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters

Name Description
TBaseNode The base type of nodes in the tree.

Constructors

Name Description
PipelineBuilder()

Methods

Name Description
AddParallelStage(Action<ParallelPipelineStageBuilder<TBaseNode>>) Adds a stage to the pipeline that runs Processors in parallel. Its name will be the number of the stage.
AddParallelStage<TProcessor>() Adds a parallel stage with a single processor of type TProcessor to the pipeline. The stage will be named after its position in the pipeline.
AddParallelStage<TProcessor>(String) Adds a parallel stage with the specified name and a single processor of type TProcessor to the pipeline.
AddParallelStage(IEnumerable<Processor<TBaseNode>>) Adds a stage to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.
AddParallelStage(String, IEnumerable<Processor<TBaseNode>>) Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.
AddParallelStage(Int32, IEnumerable<Processor<TBaseNode>>) Adds a stage to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. Its name will be the number of the stage.
AddParallelStage(String, Int32, IEnumerable<Processor<TBaseNode>>) Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism.
AddStage(Action<SerialPipelineStageBuilder<TBaseNode>>) Adds a stage to the pipeline that runs Processors serially. Its name will be the number of the stage.
AddStage<TProcessor>() Adds a stage to the pipeline with a single Processor<TBaseNode>. Its name will be the number of the stage.
AddStage<TProcessor>(String) Adds a stage with the specified name to the pipeline with a single Processor<TBaseNode>.
AddStage(IEnumerable<Processor<TBaseNode>>) Adds a stage to the pipeline with the specified Processors to be run serially. Its name will be the number of the stage.
AddStage(String, IEnumerable<Processor<TBaseNode>>) Adds a stage with the specified name to the pipeline with the specified Processors to be run serially.