Skip to content

PipelineBuilder<TBaseNode>.AddStage Method ​

Overloads ​

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

AddStage(Action<SerialPipelineStageBuilder<TBaseNode>>) ​

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

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

View source

Parameters ​

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

Returns ​

PipelineBuilder<TBaseNode>

The fluent builder.

AddStage<TProcessor>() ​

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

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

View source

Type Parameters ​

NameDescription
TProcessorThe type of the Processor<TBaseNode>.

Returns ​

PipelineBuilder<TBaseNode>

The fluent builder.

AddStage<TProcessor>(String) ​

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

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

View source

Type Parameters ​

NameDescription
TProcessorThe type of the Processor<TBaseNode>.

Parameters ​

NameTypeDescription
nameStringThe name of the stage.

Returns ​

PipelineBuilder<TBaseNode>

The fluent builder.

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.

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

View source

Parameters ​

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

Returns ​

PipelineBuilder<TBaseNode>

The fluent builder.

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

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

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

View source

Parameters ​

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

Returns ​

PipelineBuilder<TBaseNode>

The fluent builder.