Skip to content

ParallelPipelineStageBuilder<TContext, TBaseNode>.WithMaxDegreeOfParallelism Method ​

Definition ​

Sets the maximum degree of parallelism for parallel processing. Defaults to the number of processors in the machine.

c#
public ParallelPipelineStageBuilder<TContext, TBaseNode> WithMaxDegreeOfParallelism(int maxDegreeOfParallelism);

View source

Parameters ​

NameTypeDescription
maxDegreeOfParallelismInt32The maximum degree of parallelism.

Returns ​

ParallelPipelineStageBuilder<TContext, TBaseNode>

The fluent builder.