Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Class Library
 DefaultWorkflowSchedulerService Con...
Collapse All/Expand All Collapse All
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
DefaultWorkflowSchedulerService.DefaultWorkflowSchedulerService(Int32) Constructor
Initializes a new instance of the DefaultWorkflowSchedulerService class by using the specified maximum number of workflow instances that the service can run simultaneously.

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

Visual Basic (Declaration)
Public Sub New ( _
    maxSimultaneousWorkflows As Integer _
)
Visual Basic (Usage)
Dim maxSimultaneousWorkflows As Integer

Dim instance As New DefaultWorkflowSchedulerService(maxSimultaneousWorkflows)
C#
public DefaultWorkflowSchedulerService (
    int maxSimultaneousWorkflows
)
C++
public:
DefaultWorkflowSchedulerService (
    int maxSimultaneousWorkflows
)
J#
public DefaultWorkflowSchedulerService (
    int maxSimultaneousWorkflows
)
JScript
public function DefaultWorkflowSchedulerService (
    maxSimultaneousWorkflows : int
)
XAML
Not applicable.

Parameters

maxSimultaneousWorkflows

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

Exception typeCondition

ArgumentOutOfRangeException

maxSimultaneousWorkflows is less than 1.

Setting maxSimultaneousWorkflows to a high value may cause the .NET thread pool to starve. This could cause timeouts when a persistence service tries to complete a persistence transaction because Transaction objects also use the .NET thread pool.

If not specified in a constructor or configuration file, the default value for maxSimultaneousWorkflows 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) isn't always the same as (int)(4 * Environment.ProcessorCount), because of the rules of integer arithmetic.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker