1 write to _entryTokenReference
System.Data.Entity (1)
System\Data\Metadata\MetadataCache.cs (1)
433
_entryTokenReference
= new WeakReference(null);
8 references to _entryTokenReference
System.Data.Entity (8)
System\Data\Metadata\MetadataCache.cs (8)
448
Debug.Assert(
_entryTokenReference
.IsAlive, "You must call Ensure token before you call this method");
484
Debug.Assert(
_entryTokenReference
.IsAlive == false, "Entry Token must never be alive if the entry is marked for cleanup");
499
else if (!
_entryTokenReference
.IsAlive)
522
object entryToken =
_entryTokenReference
.Target;
537
if (
_entryTokenReference
.IsAlive)
572
_entryTokenReference
.Target = entryToken;
583
Debug.Assert(
_entryTokenReference
.IsAlive, "This entry must be in use");
609
return
_entryTokenReference
.IsAlive;