Export (0) Print
Expand All

DefaultWorkflowSchedulerService.MaxSimultaneousWorkflows Property

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft