DefaultWorkflowSchedulerService.MaxSimultaneousWorkflows Property
Gets the maximum number of workflow instances that can be stored in the thread pool queue.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Example of Use in Config
http://msdn.microsoft.com/en-us/library/ms734706%28VS.90%29.aspx
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="HostingWorkflowRuntime" type="System.Workflow.Runtime.Configuration.WorkflowRuntimeSection, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<HostingWorkflowRuntime Name="Hosting">
<CommonParameters/>
<Services>
<add type="System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" maxSimultaneousWorkflows="1"/>
</Services>
</HostingWorkflowRuntime>
</configuration>
- 11/10/2010
- Mazric