internal PersistenceProviderDirectory(InstanceStore store, InstanceOwner owner, IDictionary<XName, InstanceValue> instanceMetadataChanges, WorkflowDefinitionProvider workflowDefinitionProvider, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) : this(workflowDefinitionProvider, serviceHost, consistencyScope, maxInstances) { Fx.Assert(store != null, "InstanceStore must be specified on PPD."); Fx.Assert(owner != null, "InstanceOwner must be specified on PPD."); this.store = store; this.owner = owner; this.InstanceMetadataChanges = instanceMetadataChanges; }
private PersistenceProviderDirectory(Activity workflowDefinition, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) { Fx.AssertAndThrow(maxInstances > 0, "MaxInstance must be greater than zero on PPD."); this.workflowDefinition = workflowDefinition; this.serviceHost = serviceHost; this.ConsistencyScope = consistencyScope; this.MaxInstances = maxInstances; this.throttle = new InstanceThrottle(this.MaxInstances); this.pipelinesInUse = new HashSet<PersistencePipeline>(); this.keyMap = new Dictionary<Guid, PersistenceContext>(); this.instanceCache = new Dictionary<Guid, PersistenceContext>(); }
PersistenceProviderDirectory(WorkflowDefinitionProvider workflowDefinitionProvider, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) { Fx.Assert(workflowDefinitionProvider != null, "definition provider must be specified on PPD."); Fx.Assert(serviceHost != null, "WorkflowServiceHost must be specified on PPD."); Fx.AssertAndThrow(maxInstances > 0, "MaxInstance must be greater than zero on PPD."); this.workflowDefinitionProvider = workflowDefinitionProvider; this.serviceHost = serviceHost; ConsistencyScope = consistencyScope; MaxInstances = maxInstances; this.throttle = new InstanceThrottle(MaxInstances, serviceHost); this.pipelinesInUse = new HashSet<PersistencePipeline>(); this.keyMap = new Dictionary<Guid, PersistenceContext>(); this.instanceCache = new Dictionary<Guid, PersistenceContext>(); this.loadsInProgress = new Dictionary<InstanceKey, AsyncWaitHandle>(); }
internal PersistenceProviderDirectory(InstanceStore store, InstanceOwner owner, IDictionary<XName, InstanceValue> instanceMetadataChanges, Activity workflowDefinition, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) : this(workflowDefinition, serviceHost, consistencyScope, maxInstances) { this.store = store; this.owner = owner; this.InstanceMetadataChanges = instanceMetadataChanges; }
internal PersistenceProviderDirectory(InstanceStore store, InstanceOwner owner, IDictionary <XName, InstanceValue> instanceMetadataChanges, Activity workflowDefinition, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) : this(workflowDefinition, serviceHost, consistencyScope, maxInstances) { this.store = store; this.owner = owner; this.InstanceMetadataChanges = instanceMetadataChanges; }
private PersistenceProviderDirectory(Activity workflowDefinition, WorkflowServiceHost serviceHost, DurableConsistencyScope consistencyScope, int maxInstances) { Fx.AssertAndThrow(maxInstances > 0, "MaxInstance must be greater than zero on PPD."); this.workflowDefinition = workflowDefinition; this.serviceHost = serviceHost; this.ConsistencyScope = consistencyScope; this.MaxInstances = maxInstances; this.throttle = new InstanceThrottle(this.MaxInstances); this.pipelinesInUse = new HashSet <PersistencePipeline>(); this.keyMap = new Dictionary <Guid, PersistenceContext>(); this.instanceCache = new Dictionary <Guid, PersistenceContext>(); }