Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Configure a Workflow Service

How to: Configure a Workflow Service

.NET Framework 3.5

Configuring a workflow services client or service is similar to configuring a Windows Communication Foundation (WCF) service, in that an application configuration file is used. The workflow runtime is configured as part of the behaviors section of the service. The following example shows how you can add a SqlWorkflowPersistenceService by adding the workflow runtime as a behavior of the service. The workflow runtime section that is specific to workflow is highlighted in bold:

<?xml version="1.0" encoding="utf-8" ?>

      <service name="Microsoft.WorkflowServices.Samples.SequentialCalculatorService" behaviorConfiguration="ServiceBehavior" >
            <add baseAddress="http://localhost:8888/ServiceHost/Calculator.svc" />
        <endpoint address="" 
                  contract="ICalculator" />

        <behavior name="ServiceBehavior"  >
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
                includeWindowsGroups="true" />
          <!-- Comment out the following behavior to disable persistence store -->
          <workflowRuntime name="WorkflowServiceHostRuntime" validateOnCreate="true" enablePerformanceCounters="true">
              <add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                   connectionString="Data Source=localhost\sqlexpress;Initial Catalog=NetFx35Samples_ServiceWorkflowStore;Integrated Security=True;Pooling=False"
                   LoadIntervalSeconds="1" UnLoadOnIdle= "true" />

See Also

© 2015 Microsoft