26 references to EvictionReason
Microsoft.AspNetCore.Components.Server (7)
Circuits\CircuitRegistry.cs (7)
258
protected virtual void OnEntryEvicted(object key, object value,
EvictionReason
reason, object state)
262
case
EvictionReason
.Expired:
263
case
EvictionReason
.TokenExpired:
264
case
EvictionReason
.Capacity:
271
case
EvictionReason
.Removed:
276
Debug.Fail($"Unexpected {nameof(
EvictionReason
)} {reason}");
406
public static partial void CircuitEvicted(ILogger logger, CircuitId circuitId,
EvictionReason
evictionReason);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitRegistryTest.cs (1)
386
protected override void OnEntryEvicted(object key, object value,
EvictionReason
reason, object state)
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
132
void RemoveFromTags(object key, object? value,
EvictionReason
reason, object? state)
Microsoft.Extensions.Caching.Abstractions (2)
PostEvictionDelegate.cs (2)
11
/// <param name="reason">The <see cref="
EvictionReason
"/>.</param>
13
public delegate void PostEvictionDelegate(object key, object? value,
EvictionReason
reason, object? state);
Microsoft.Extensions.Caching.Memory (15)
CacheEntry.CacheEntryTokens.cs (1)
58
cacheEntry.SetExpired(
EvictionReason
.TokenExpired);
CacheEntry.cs (7)
183
internal
EvictionReason
EvictionReason { get => (
EvictionReason
)_evictionReason; private set => _evictionReason = (byte)value; }
235
internal void SetExpired(
EvictionReason
reason)
237
if (EvictionReason ==
EvictionReason
.None)
259
SetExpired(
EvictionReason
.Expired);
266
SetExpired(
EvictionReason
.Expired);
282
entry.SetExpired(
EvictionReason
.TokenExpired);
MemoryCache.cs (7)
146
priorEntry.SetExpired(
EvictionReason
.Replaced);
190
entry.SetExpired(
EvictionReason
.Replaced);
198
entry.SetExpired(
EvictionReason
.Capacity);
225
if (!entry.CheckExpired(utcNow) || entry.EvictionReason ==
EvictionReason
.Replaced)
286
entry.SetExpired(
EvictionReason
.Removed);
303
entry.Value.SetExpired(
EvictionReason
.Removed);
609
entry.SetExpired(
EvictionReason
.Capacity);