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