Skip to content

ParallelPipelineStageBuilder<TBaseNode> Class ​

Definition ​

Fluent builder for a parallel pipeline stage.

c#
public sealed class ParallelPipelineStageBuilder<TBaseNode> : PipelineStageBuilder<ParallelPipelineStageBuilder<TBaseNode>, ParallelPipelineStage<TBaseNode>, TBaseNode, Processor<TBaseNode>, Func<TBaseNode, Boolean>>
   where TBaseNode : Node<TBaseNode>

View source

Type Parameters ​

NameDescription
TBaseNodeThe base type of nodes in the tree.

Methods ​

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