Skip to content

PipelineBuilder<TBaseNode>.AddStage Method

Overloads

Name Description
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.

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

View source

Parameters

Name Type Description
build Action<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.

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

View source

Type Parameters

Name Description
TProcessor The 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>.

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

View source

Type Parameters

Name Description
TProcessor The type of the Processor<TBaseNode>.

Parameters

Name Type Description
name String The 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.

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

View source

Parameters

Name Type Description
processors IEnumerable<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.

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

View source

Parameters

Name Type Description
name String The name of the stage.
processors IEnumerable<Processor<TBaseNode>> The processors to add.

Returns

PipelineBuilder<TBaseNode>

The fluent builder.