3 writes to instanceCache
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (3)
77
this.
instanceCache
= new Dictionary<Guid, PersistenceContext>();
241
this.
instanceCache
= null;
270
this.
instanceCache
= null;
16 references to instanceCache
System.ServiceModel.Activities (16)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (16)
146
return this.
instanceCache
.Values.ToList();
233
if (this.
instanceCache
!= null)
235
if (this.
instanceCache
.Count > 0)
260
if (this.
instanceCache
!= null)
262
foreach (PersistenceContext context in this.
instanceCache
.Values.ToArray())
267
Fx.Assert(this.
instanceCache
.Count == 0, "All instances should have been detached.");
374
Fx.AssertAndThrow(this.
instanceCache
!= null, "Since the context must be visible, it must still be in the cache.");
414
Fx.AssertAndThrow(this.
instanceCache
!= null, "Since the context must be visible, it must still be in the cache.");
489
this.
instanceCache
.TryGetValue(suggestedIdOrId, out foundContext);
497
Fx.Assert(this.
instanceCache
.Count <= MaxInstances, "Too many instances in PPD.");
598
Fx.Assert(this.
instanceCache
!= null, "All contexts should not be visible if we are closed / aborted.");
611
if (this.
instanceCache
.Remove(contextToAbort.InstanceId))
626
if (this.
instanceCache
== null)
1218
this.ppd.
instanceCache
.TryGetValue(this.suggestedIdOrId, out this.result);
1253
if (this.ppd.
instanceCache
.TryGetValue(this.context.InstanceId, out contextToAbort))
1282
this.ppd.
instanceCache
.Add(this.context.InstanceId, this.context);