PipelineBuilder<TContext, TBaseNode>.AddParallelStage Method
Overloads
| Name | Description |
|---|---|
AddParallelStage(Action<ParallelPipelineStageBuilder<TContext, TBaseNode>>) |
Adds a stage to the pipeline that runs Processors in parallel. Its name will be the number of the stage. |
AddParallelStage(IEnumerable<Processor<TContext, TBaseNode>>) |
Adds a stage to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage. |
AddParallelStage(String, IEnumerable<Processor<TContext, TBaseNode>>) |
Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage. |
AddParallelStage(Int32, IEnumerable<Processor<TContext, TBaseNode>>) |
Adds a stage to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. Its name will be the number of the stage. |
AddParallelStage(String, Int32, IEnumerable<Processor<TContext, TBaseNode>>) |
Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. |
AddParallelStage(Action<ParallelPipelineStageBuilder<TContext, TBaseNode>>)
Adds a stage to the pipeline that runs Processors in parallel. Its name will be the number of the stage.
public PipelineBuilder<TContext, TBaseNode> AddParallelStage(Action<ParallelPipelineStageBuilder<TContext, TBaseNode>> build);
Parameters
| Name | Type | Description |
|---|---|---|
build |
Action<ParallelPipelineStageBuilder<TContext, TBaseNode>> |
An action to perform on a ParallelPipelineStageBuilder<TContext, TBaseNode> to build the pipeline. |
Returns
PipelineBuilder<TContext, TBaseNode>
The fluent builder.
AddParallelStage(IEnumerable<Processor<TContext, TBaseNode>>)
Adds a stage to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.
public PipelineBuilder<TContext, TBaseNode> AddParallelStage(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.
AddParallelStage(String, IEnumerable<Processor<TContext, TBaseNode>>)
Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel. Its name will be the number of the stage.
public PipelineBuilder<TContext, TBaseNode> AddParallelStage(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.
AddParallelStage(Int32, IEnumerable<Processor<TContext, TBaseNode>>)
Adds a stage to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism. Its name will be the number of the stage.
public PipelineBuilder<TContext, TBaseNode> AddParallelStage(int maxDegreeOfParallelism, params IEnumerable<Processor<TContext, TBaseNode>> processors);
Parameters
| Name | Type | Description |
|---|---|---|
maxDegreeOfParallelism |
Int32 |
The maximum degree of parallelism. If set to one, then the stage will proceed in serial. If greater than one, then one thread will be used to walk the tree and the other threads will be used to process the nodes. |
processors |
IEnumerable<Processor<TContext, TBaseNode>> |
The processors to add. |
Returns
PipelineBuilder<TContext, TBaseNode>
The fluent builder.
AddParallelStage(String, Int32, IEnumerable<Processor<TContext, TBaseNode>>)
Adds a stage with the specified name to the pipeline with the specified Processors to be run in parallel with the specified maximum degree of parallelism.
public PipelineBuilder<TContext, TBaseNode> AddParallelStage(string name, int maxDegreeOfParallelism, params IEnumerable<Processor<TContext, TBaseNode>> processors);
Parameters
| Name | Type | Description |
|---|---|---|
name |
String |
The name of the stage. |
maxDegreeOfParallelism |
Int32 |
The maximum degree of parallelism. If set to one, then the stage will proceed in serial. If greater than one, then one thread will be used to walk the tree and the other threads will be used to process the nodes. |
processors |
IEnumerable<Processor<TContext, TBaseNode>> |
The processors to add. |
Returns
PipelineBuilder<TContext, TBaseNode>
The fluent builder.