1 type derived from StampedeState
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
18
internal sealed class StampedeState<TState, T> :
StampedeState
8 references to StampedeState
Microsoft.Extensions.Caching.Hybrid (8)
Internal\DefaultHybridCache.Stampede.cs (3)
14
private readonly ConcurrentDictionary<StampedeKey,
StampedeState
> _currentOperations = new();
77
if (@this._currentOperations.TryGetValue(stampedeKey, out
StampedeState
? found))
111
return _currentOperations.TryGetValue(stampedeKey, out
StampedeState
? state) ? state.DebugCallerCount : 0;
Internal\DefaultHybridCache.StampedeState.cs (5)
39
/// Initializes a new instance of the <see cref="
StampedeState
"/> class optionally with shared cancellation support.
60
/// Initializes a new instance of the <see cref="
StampedeState
"/> class using a fixed cancellation token.
100
private void RemoveStampedeState(
StampedeState
expected)
107
if (_currentOperations.TryGetValue(key, out
StampedeState
? current)
112
_ = _currentOperations.TryRemove(key, out
StampedeState
? removed);