Skip to content

PipelineBuilder<TContext, TBaseNode>.AddStage Method ​

Overloads ​

NameDescription
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.

AddStage(Action<SerialPipelineStageBuilder<TContext, TBaseNode>>) ​

Adds a stage to the pipeline that runs Processors serially. Its name will be the number of the stage.

c#
public PipelineBuilder<TContext, TBaseNode> AddStage(Action<SerialPipelineStageBuilder<TContext, TBaseNode>> build);

View source

Parameters ​

NameTypeDescription
buildAction<SerialPipelineStageBuilder<TContext, TBaseNode>>An action to perform on a SerialPipelineStageBuilder<TContext, TBaseNode> to build the pipeline.

Returns ​

PipelineBuilder<TContext, TBaseNode>

The fluent builder.

AddStage<TProcessor>() ​

Adds a stage to the pipeline with a single Processor<TContext, TBaseNode>. Its name will be the number of the stage.

c#
public PipelineBuilder<TContext, TBaseNode> AddStage<TProcessor>()
   where TProcessor : Processor<TContext, TBaseNode>, new();

View source

Type Parameters ​

NameDescription
TProcessorThe type of the Processor<TContext, TBaseNode>.

Returns ​

PipelineBuilder<TContext, TBaseNode>

The fluent builder.

AddStage<TProcessor>(String) ​

Adds a stage with the specified name to the pipeline with a single Processor<TContext, TBaseNode>.

c#
public PipelineBuilder<TContext, TBaseNode> AddStage<TProcessor>(string name)
   where TProcessor : Processor<TContext, TBaseNode>, new();

View source

Type Parameters ​

NameDescription
TProcessorThe type of the Processor<TContext, TBaseNode>.

Parameters ​

NameTypeDescription
nameStringThe name of the stage.

Returns ​

PipelineBuilder<TContext, TBaseNode>

The fluent builder.

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.

c#
public PipelineBuilder<TContext, TBaseNode> AddStage(params IEnumerable<Processor<TContext, TBaseNode>> processors);

View source

Parameters ​

NameTypeDescription
processorsIEnumerable<Processor<TContext, TBaseNode>>The processors to add.

Returns ​

PipelineBuilder<TContext, TBaseNode>

The fluent builder.

AddStage(String, IEnumerable<Processor<TContext, TBaseNode>>) ​

Adds a stage with the specified name to the pipeline with the specified Processors to be run serially.

c#
public PipelineBuilder<TContext, TBaseNode> AddStage(string name, params IEnumerable<Processor<TContext, TBaseNode>> processors);

View source

Parameters ​

NameTypeDescription
nameStringThe name of the stage.
processorsIEnumerable<Processor<TContext, TBaseNode>>The processors to add.

Returns ​

PipelineBuilder<TContext, TBaseNode>

The fluent builder.