PipelineBuilder<TContext, TBaseNode>.AddStage Method
Overloads
| Name | Description |
|---|---|
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.
public PipelineBuilder<TContext, TBaseNode> AddStage(Action<SerialPipelineStageBuilder<TContext, TBaseNode>> build);
Parameters
| Name | Type | Description |
|---|---|---|
build |
Action<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.
public PipelineBuilder<TContext, TBaseNode> AddStage<TProcessor>()
where TProcessor : Processor<TContext, TBaseNode>, new();
Type Parameters
| Name | Description |
|---|---|
TProcessor |
The 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>.
public PipelineBuilder<TContext, TBaseNode> AddStage<TProcessor>(string name)
where TProcessor : Processor<TContext, TBaseNode>, new();
Type Parameters
| Name | Description |
|---|---|
TProcessor |
The type of the Processor<TContext, TBaseNode>. |
Parameters
| Name | Type | Description |
|---|---|---|
name |
String |
The 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.
public PipelineBuilder<TContext, TBaseNode> AddStage(params IEnumerable<Processor<TContext, TBaseNode>> processors);
Parameters
| Name | Type | Description |
|---|---|---|
processors |
IEnumerable<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.
public PipelineBuilder<TContext, TBaseNode> AddStage(string name, params IEnumerable<Processor<TContext, TBaseNode>> processors);
Parameters
| Name | Type | Description |
|---|---|---|
name |
String |
The name of the stage. |
processors |
IEnumerable<Processor<TContext, TBaseNode>> |
The processors to add. |
Returns
PipelineBuilder<TContext, TBaseNode>
The fluent builder.