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