22 references to EntryState
System.Runtime.Caching (22)
System\Runtime\Caching\CacheExpires.cs (4)
508if ((cacheEntry.State & (EntryState.AddedToCache | EntryState.AddingToCache)) == 0) 536if ((cacheEntry.State & (EntryState.AddedToCache | EntryState.AddingToCache)) == 0)
System\Runtime\Caching\MemoryCacheEntry.cs (7)
83internal EntryState State 85get { return (EntryState)_state; } 163if (State > EntryState.AddedToCache) 203internal bool CompareExchangeState(EntryState value, EntryState comparand) 231if (State == EntryState.AddedToCache) 243State = EntryState.Closed;
System\Runtime\Caching\MemoryCacheEntryChangeMonitor.cs (1)
93if (entry.State != EntryState.AddedToCache)
System\Runtime\Caching\MemoryCacheStore.cs (10)
70if (!entry.CompareExchangeState(EntryState.AddedToCache, EntryState.AddingToCache)) 112Debug.Assert(entry.State == EntryState.RemovingFromCache, "entry.State = EntryState.RemovingFromCache"); 114entry.State = EntryState.RemovedFromCache; 191toBeReleasedEntry.State = EntryState.RemovingFromCache; 197entry.State = EntryState.AddingToCache; 270entry.State = EntryState.RemovingFromCache; 317entry.State = EntryState.RemovingFromCache; 347existingEntry.State = EntryState.RemovingFromCache; 349entry.State = EntryState.AddingToCache;