WorkflowRuntimeElement Class

Represents a configuration element that specifies settings for an instance of WorkflowRuntime for hosting workflow-based Windows Communication Foundation (WCF) services.

Namespace:  System.ServiceModel.Configuration
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)

public class WorkflowRuntimeElement extends BehaviorExtensionElement

To enable or disable one of the ServiceDebugElement features using a configuration file, you must:

  1. Add a behavior configuration attribute to the service element of your WCF service. Endpoint behaviors are configured on endpoint elements; service behaviors are configured on service elements.

  2. Create a serviceBehaviors section, and add a behavior element with the name that corresponds to the behaviorConfiguration attribute value from step 1.

  3. Add a serviceDebug element to the behavior element from step 2, and enable or disable the various properties as needed.

<serviceBehaviors>

<behavior name="ServiceBehavior">

<workflowRuntime name="WorkflowServiceHostRuntime" validateOnCreate="true" enablePerformanceCounters="true">

<services>

<add type="NetFx.Checkin.Scenario.WorkflowServices.WorkflowBasedServices.Common.TestPersistenceService.FilePersistenceService, NetFx.Checkin.Scenario.WorkflowServices.WorkflowBasedServices.Common"/>

</services>

</workflowRuntime>

</behavior>

</serviceBehaviors>

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft