DefaultWorkflowSchedulerService.MaxSimultaneousWorkflows Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the maximum number of workflow instances that can be stored in the thread pool queue.

Namespace:   System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public int MaxSimultaneousWorkflows { get; }

Property Value

Type: System.Int32

An integer that represents the maximum number of workflow instances that can be stored in the thread pool queue.

The default value for this method is 5 for a single-processor machine, and (int)(5 * Environment.ProcessorCount * .8) for a multiple-processor machine. Note that (int)(5 * Environment.ProcessorCount * .8) is not always the same as (int)(4 * Environment.ProcessorCount), because of the rules of integer arithmetic.

.NET Framework
Available since 3.0
Return to top
Show: