1 write to ppd
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
754
this.
ppd
= ppd;
46 references to ppd
System.ServiceModel.Activities (46)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (46)
864
thisPtr.
ppd
.EndReserveThrottle(out thisPtr.loadPending, result);
866
thisPtr.lockInstance = thisPtr.
ppd
.ConsistencyScope != DurableConsistencyScope.Local || !thisPtr.canCreateInstance;
884
this.result = this.loadAny ? null : this.
ppd
.LoadFromCache(this.key, this.suggestedIdOrId, this.canCreateInstance);
892
else if (this.
ppd
.store == null && !this.canCreateInstance)
908
waitHandle = this.
ppd
.LoadInProgressWaitHandle(this.key);
921
IAsyncResult reserveThrottleResult = this.
ppd
.BeginReserveThrottle(this.timeoutHelper.RemainingTime(),
951
if (this.
ppd
.store == null)
957
this.context = new PersistenceContext(this.
ppd
, this.suggestedIdOrId == Guid.Empty ? Guid.NewGuid() : this.suggestedIdOrId, this.key, this.associatedKeys);
967
this.handle = this.
ppd
.store.CreateInstanceHandle(this.
ppd
.owner, this.suggestedIdOrId);
974
InstancePersistenceCommand loadCommand = this.
ppd
.CreateLoadCommandHelper(this.key, out this.handle, this.canCreateInstance, this.suggestedIdOrId, this.associatedKeys, this.loadAny);
980
executeResult = this.
ppd
.store.BeginExecute(this.handle, loadCommand, this.timeoutHelper.RemainingTime(), PrepareAsyncCompletion(LoadOrCreateAsyncResult.HandleExecute), this);
1024
thisPtr.view = thisPtr.
ppd
.store.EndExecute(result);
1059
this.result = this.loadAny ? null : this.
ppd
.LoadFromCache(this.key, this.suggestedIdOrId, this.canCreateInstance);
1115
this.context = new PersistenceContext(this.
ppd
, this.
ppd
.store, this.handle, this.suggestedIdOrId, null, true, false, null, null);
1119
this.context = new PersistenceContext(this.
ppd
, this.
ppd
.store, this.handle, this.view.InstanceId, this.view.InstanceKeys.Values.Select((keyView) => new InstanceKey(keyView.InstanceKey, keyView.InstanceKeyMetadata)), true, true, this.view, null);
1128
this.context = new PersistenceContext(this.
ppd
, this.
ppd
.store, this.handle, this.view.InstanceId, this.view.InstanceKeys.Values.Select((keyView) => new InstanceKey(keyView.InstanceKey, keyView.InstanceKeyMetadata)), false, true, this.view, this.updatedIdentity);
1137
this.
ppd
.RegisterPipelineInUse(this.pipeline);
1157
throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SRCore.NullAssignedToValueType(this.
ppd
.serviceHost.DurableInstancingOptions.ScopeName)));
1160
if (!this.
ppd
.serviceHost.DurableInstancingOptions.ScopeName.Equals(instanceValue.Value))
1162
throw FxTrace.Exception.AsError(new InstancePersistenceCommandException(SRCore.IncorrectValueType(this.
ppd
.serviceHost.DurableInstancingOptions.ScopeName, instanceValue.Value)));
1205
lock (this.
ppd
.ThisLock)
1207
this.
ppd
.ThrowIfClosedOrAborted();
1214
if (this.
ppd
.store == null)
1218
this.
ppd
.instanceCache.TryGetValue(this.suggestedIdOrId, out this.result);
1222
this.
ppd
.keyMap.TryGetValue(this.key.Value, out this.result);
1235
if (this.
ppd
.keyMap.TryGetValue(instanceKey.Value, out conflictingContext))
1253
if (this.
ppd
.instanceCache.TryGetValue(this.context.InstanceId, out contextToAbort))
1264
this.
ppd
.DetachContext(contextToAbort, ref this.contextsToAbort);
1269
if (this.
ppd
.keyMap.TryGetValue(loadedKey.Value, out contextToAbort))
1271
Fx.Assert(this.
ppd
.store != null, "When there is no store, exception should have already been thrown before we get here.");
1272
this.
ppd
.DetachContext(contextToAbort, ref this.contextsToAbort);
1274
this.
ppd
.keyMap.Add(loadedKey.Value, this.context);
1282
this.
ppd
.instanceCache.Add(this.context.InstanceId, this.context);
1300
thisPtr.
ppd
.UnregisterPipelineInUse(thisPtr.pipeline);
1304
thisPtr.
ppd
.throttle.Exit();
1308
lock (thisPtr.
ppd
.ThisLock)
1310
thisPtr.
ppd
.DetachContext(thisPtr.context, ref thisPtr.contextsToAbort);
1320
thisPtr.
ppd
.AbortContexts(thisPtr.contextsToAbort);
1323
thisPtr.
ppd
.LoadInProgressFinished(thisPtr.key);
1329
thisPtr.
ppd
.serviceHost.WorkflowServiceHostPerformanceCounters.WorkflowCreated();
1333
thisPtr.
ppd
.serviceHost.WorkflowServiceHostPerformanceCounters.WorkflowLoaded();
1336
thisPtr.
ppd
.serviceHost.WorkflowServiceHostPerformanceCounters.WorkflowLoadDuration(thisPtr.GetDuration());