ParallelPipelineStageBuilder<TContext, TBaseNode> Class ​
Definition ​
Fluent builder for a parallel pipeline stage.
c#
public sealed class ParallelPipelineStageBuilder<TContext, TBaseNode> : PipelineStageBuilder<ParallelPipelineStageBuilder<TContext, TBaseNode>, ParallelPipelineStage<TContext, TBaseNode>, TBaseNode, Processor<TContext, TBaseNode>, Func<TContext, TBaseNode, Boolean>>
where TBaseNode : Node<TBaseNode>Type Parameters ​
| Name | Description |
|---|---|
TContext | The type of the context for the processing. |
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. |