2 instantiations of StampedeState
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (1)
198
var state = new
StampedeState
<T, T>(this, new StampedeKey(key, flags), token);
Internal\DefaultHybridCache.Stampede.cs (1)
30
stampedeState = new
StampedeState
<TState, T>(this, stampedeKey, canBeCanceled);
7 references to StampedeState
Microsoft.Extensions.Caching.Hybrid (7)
Internal\DefaultHybridCache.cs (2)
156
if (GetOrCreateStampedeState<TState, T>(key, flags, out
var
stampede, canBeCanceled))
198
var
state = new StampedeState<T, T>(this, new StampedeKey(key, flags), token);
Internal\DefaultHybridCache.Stampede.cs (4)
16
public bool GetOrCreateStampedeState<TState, T>(string key, HybridCacheEntryFlags flags, out
StampedeState
<TState, T> stampedeState, bool canBeCanceled)
22
if (TryJoinExistingSession(this, stampedeKey, out
var
existing))
73
[NotNullWhen(true)] out
StampedeState
<TState, T>? stampedeState)
77
if (found is not
StampedeState
<TState, T> tmp)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
87
static async ValueTask<T> WithCancellationAsync(ILogger log,
StampedeState
<TState, T> stampede, CancellationToken token)