Saturday 15 January 2011

Configuring Windows Workflow from an App.Config file -


I have done this before, so I know that this is possible, but I really remember how to accomplish this Can not do I have to set the loading intranval and instance ownership diary from App.config, can someone please mark me in the right direction. I am currently using the following which is not working:

  & lt; Runtime & gt; & Lt; CommonParameters & gt; & Lt; Add name = "ConnectionString" value = "*****" /> & Lt; / CommonParameters & gt; & Lt; Services & gt; & Lt ;! - Persistence - & gt; & Lt; Type add = "System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" UnloadOnIdle = "true" InstanceOwnershipDuration = "10" LoadingInterval = "30" / & Gt; & Lt ;! - Tracking - & gt; & Lt; type = "System.Workflow.Runtime.Tracking.SqlTrackingService, System.Workflow.Runtime, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" UseDefaultProfile = "true" / & add gt; & Lt ;! - Data exchange - & gt; & Lt; type = "System.Workflow.Activities.ExternalDataExchangeService, System.Workflow.Activities, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 adding" ConfigurationSection = "Workflow / ExternalDataExchangeServices" / & gt; & Lt ;! - Default workflow scheduler - & gt; & Lt; Type = "System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService, System.Workflow.Runtime, Version = 3.0.0.0, Culture = Neutral, PublicKeyToken = 31bf3856ad364e35" /> Adding; & Lt ;! - Work batch service - & gt; & Lt; type = "System.Workflow.Runtime.Hosting.SharedConnectionWorkflowCommitWorkBatchService, System.Workflow.Runtime, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" EnableRetries = "true" / & add gt; & Lt; / Services & gt; & Lt; / Runtime & gt;  

the following parameter name

to open System.Workflow.Runtime assembly with cracked reflector and found for SqlWorkflowPersistenceService:

ConnectionString
OwnershipTimeoutSeconds
UnloadOnIdle
LoadIntervalSeconds
EnableRetries

I setup after me like persistence configuration line and everything Is:

  & lt; Add type = "System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" UnloadOnIdle = "true" ownership Taimautsackend = "10" Lodintrvolsekand = "30" />  

No comments:

Post a Comment