我以前做过,所以我知道这是可能的,但我似乎记不清该如何准确地完成它。我需要从app.config中设置loadingInterval和instanceOwnershipDuration。有人能给我指个方向吗?我目前正在使用以下不起作用的内容:
<Runtime>
<CommonParameters>
<add name="ConnectionString" value="*****"/>
</CommonParameters>
<Services>
<!-- Persistence -->
<add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" UnloadOnIdle="true" InstanceOwnershipDuration="10" LoadingInterval="30" />
<!-- Tracking -->
<add type="System.Workflow.Runtime.Tracking.SqlTrackingService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" UseDefaultProfile="true"/>
<!--Data Exchanges-->
<add type="System.Workflow.Activities.ExternalDataExchangeService, System.Workflow.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ConfigurationSection="Workflow/ExternalDataExchangeServices" />
<!-- Default Workflow Scheduler-->
<add type="System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<!-- Work Batch Service -->
<add type="System.Workflow.Runtime.Hosting.SharedConnectionWorkflowCommitWorkBatchService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" EnableRetries="true" />
</Services>
</Runtime>