18 references to EntryState
System.Runtime.Caching (18)
System\Caching\MemoryCacheEntry.cs (7)
72
internal
EntryState
State {
73
get { return (
EntryState
)_state; }
136
if (State >
EntryState
.AddedToCache) {
173
internal bool CompareExchangeState(
EntryState
value,
EntryState
comparand) {
197
if (State ==
EntryState
.AddedToCache) {
203
State =
EntryState
.Closed;
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
78
if (entry.State !=
EntryState
.AddedToCache) {
System\Caching\MemoryCacheStore.cs (10)
57
if (!entry.CompareExchangeState(
EntryState
.AddedToCache,
EntryState
.AddingToCache)) {
91
Dbg.Assert(entry.State ==
EntryState
.RemovingFromCache, "entry.State = EntryState.RemovingFromCache");
93
entry.State =
EntryState
.RemovedFromCache;
157
toBeReleasedEntry.State =
EntryState
.RemovingFromCache;
162
entry.State =
EntryState
.AddingToCache;
224
entry.State =
EntryState
.RemovingFromCache;
265
entry.State =
EntryState
.RemovingFromCache;
289
existingEntry.State =
EntryState
.RemovingFromCache;
291
entry.State =
EntryState
.AddingToCache;