MrKWatkins.Ast Help

PipelineBuilder<TNode>.AddStage Method

Overloads

Name

Description

AddStage(Action<SerialPipelineStageBuilder<TNode>>)

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

AddStage(Processor<TNode>, Processor<TNode> [])

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, Processor<TNode>, Processor<TNode> [])

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

AddStage(Action<SerialPipelineStageBuilder<TNode>>)

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

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

Parameters

Name

Type

Description

build

Action<SerialPipelineStageBuilder<TNode>>

An action to perform on a SerialPipelineStageBuilder<TNode> to build the pipeline.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddStage<TProcessor>()

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

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

Type Parameters

Name

Description

TProcessor

The type of the Processor<TNode>.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddStage<TProcessor>(String)

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

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

Type Parameters

Name

Description

TProcessor

The type of the Processor<TNode>.

Parameters

Name

Type

Description

name

String

The name of the stage.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddStage(Processor<TNode>, Processor<TNode>[])

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<TNode> AddStage(Processor<TNode> processor, params Processor<TNode>[] others);

Parameters

Name

Type

Description

processor

Processor<TNode>

The first processor to add.

others

Processor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

AddStage(String, Processor<TNode>, Processor<TNode>[])

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

public PipelineBuilder<TNode> AddStage(string name, Processor<TNode> processor, params Processor<TNode>[] others);

Parameters

Name

Type

Description

name

String

The name of the stage.

processor

Processor<TNode>

The first processor to add.

others

Processor<TNode> []

Other processors to add.

Returns

PipelineBuilder<TNode>

The fluent builder.

Last modified: 09 September 2024