PipelineBuilder<TContext, TBaseNode> Class ​
Definition ​
Fluent builder for a pipeline stage.
c#
public sealed class PipelineBuilder<TContext, TBaseNode>
where TBaseNode : Node<TBaseNode>Type Parameters ​
| Name | Description |
|---|---|
TContext | The type of the context. |
TBaseNode | The base type of nodes in the tree. |
Constructors ​
| Name | Description |
|---|---|
PipelineBuilder() |
Methods ​
| Name | Description |
|---|---|
AddParallelStage(Action<ParallelPipelineStageBuilder<TContext, 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<TContext, 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<TContext, 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<TContext, 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<TContext, 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<TContext, 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<TContext, 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<TContext, TBaseNode>. |
AddStage(IEnumerable<Processor<TContext, 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<TContext, TBaseNode>>) | Adds a stage with the specified name to the pipeline with the specified Processors to be run serially. |