ParallelPipelineStageBuilder<TBaseNode> Class
Definition
Fluent builder for a parallel pipeline stage.
public sealed class ParallelPipelineStageBuilder<TBaseNode> : PipelineStageBuilder<ParallelPipelineStageBuilder<TBaseNode>, ParallelPipelineStage<TBaseNode>, TBaseNode, Processor<TBaseNode>, Func<TBaseNode, Boolean>>
where TBaseNode : Node<TBaseNode>
Type Parameters
| Name | Description |
|---|---|
TBaseNode |
The base type of nodes in the tree. |
Methods
| Name | Description |
|---|---|
WithAlwaysContinue() |
Always continue to the next stage after this one, irrespective of errors in the tree. |
WithMaxDegreeOfParallelism(Int32) |
Sets the maximum degree of parallelism for parallel processing. Defaults to the number of processors in the machine. |
WithStrategy(ParallelStrategy) |
Sets how the stage divides its work between threads. Defaults to PerNode. |