5 writes to context
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (5)
957this.context = new PersistenceContext(this.ppd, this.suggestedIdOrId == Guid.Empty ? Guid.NewGuid() : this.suggestedIdOrId, this.key, this.associatedKeys); 1115this.context = new PersistenceContext(this.ppd, this.ppd.store, this.handle, this.suggestedIdOrId, null, true, false, null, null); 1119this.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); 1128this.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); 1289this.context = null;
18 references to context
System.ServiceModel.Activities (18)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (18)
1131IEnumerable<IPersistencePipelineModule> modules = this.context.GetInstance(null).PipelineModules; 1182this.context.Open(TimeSpan.Zero); 1187result = this.context.BeginEnlist(this.timeoutHelper.RemainingTime(), PrepareAsyncCompletion(LoadOrCreateAsyncResult.handleContextEnlist), this); 1195thisPtr.context.EndEnlist(result); 1202Fx.Assert(!this.context.IsVisible, "Adding context which has already been added."); 1203Fx.Assert(!this.context.IsPermanentlyRemoved, "Context could not already have been removed."); 1232foreach (InstanceKey instanceKey in this.context.AssociatedKeys) 1237throw FxTrace.Exception.AsError(new InstanceKeyCollisionException(null, this.context.InstanceId, instanceKey, conflictingContext.InstanceId)); 1242if (!this.context.IsHandleValid) 1250this.context.IsVisible = true; 1253if (this.ppd.instanceCache.TryGetValue(this.context.InstanceId, out contextToAbort)) 1267foreach (InstanceKey loadedKey in this.context.AssociatedKeys) 1274this.ppd.keyMap.Add(loadedKey.Value, this.context); 1282this.ppd.instanceCache.Add(this.context.InstanceId, this.context); 1288this.result = this.context; 1306if (thisPtr.context != null) 1310thisPtr.ppd.DetachContext(thisPtr.context, ref thisPtr.contextsToAbort);