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