.net 配置WorkflowServiceHost web.config
我已经创建了一个WF4 WorkflowServiceHost应用程序。我需要更改一些绑定属性,但是web.config中没有绑定信息。我习惯于在配置中自动生成WCF 3.5应用程序,但我不知道WF4将其设置保存在哪里。该服务运行良好,并公开http端点。如何定制绑定信息?我怎样才能看到使用的默认值是什么?我只需要调整readerQuotas。自动生成的web.config如下所示:.net 配置WorkflowServiceHost web.config,.net,wcf,workflow,workflow-foundation-4,.net,Wcf,Workflow,Workflow Foundation 4,我已经创建了一个WF4 WorkflowServiceHost应用程序。我需要更改一些绑定属性,但是web.config中没有绑定信息。我习惯于在配置中自动生成WCF 3.5应用程序,但我不知道WF4将其设置保存在哪里。该服务运行良好,并公开http端点。如何定制绑定信息?我怎样才能看到使用的默认值是什么?我只需要调整readerQuotas。自动生成的web.config如下所示: <?xml version="1.0" encoding="utf-8" ?> <config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="formContainer" connectionString="metadata=res://*/form.csdl|res://*/form.ssdl|res://*/form.msl;provider=System.Data.SqlClient;provider connection string="Data Source=172.16.40.13;Initial Catalog=TestDB;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<sqlWorkflowInstanceStore
connectionString="Data Source=localhost;Initial Catalog=WorkflowInstanceStore;Integrated Security=True;Async=true"
instanceEncodingOption="None"
instanceCompletionAction="DeleteAll"
instanceLockedExceptionAction="NoRetry"
hostLockRenewalPeriod="00:00:30"
runnableInstancesDetectionPeriod="00:00:05"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
WorkflowServices可以使用绑定元素,但通常仅依赖默认值。在配置中,元素定义工作流服务将使用的默认行为 如果您想为工作流服务创建一个标记,我在本文的后半部分描述了这个过程