3 writes to SharedToken
Microsoft.Extensions.Caching.Hybrid (3)
Internal\DefaultHybridCache.StampedeState.cs (3)
51SharedToken = _sharedCancellation.Token; 55SharedToken = CancellationToken.None; 67SharedToken = token;
7 references to SharedToken
Microsoft.Extensions.Caching.Hybrid (7)
Internal\DefaultHybridCache.StampedeStateT.cs (7)
123public override void SetCanceled() => _result?.TrySetCanceled(SharedToken); 243result = await Cache.GetFromL2DirectAsync(Key.Key, SharedToken).ConfigureAwait(false); 256catch (OperationCanceledException) when (SharedToken.IsCancellationRequested) 324newValue = await _factoryWithContext(_state!, _context!, SharedToken).ConfigureAwait(false); 330newValue = await _factory!(_state!, SharedToken).ConfigureAwait(false); 343if (ex is OperationCanceledException && SharedToken.IsCancellationRequested) 447await Cache.SetL2Async(Key.Key, cacheItem, in buffer, _options, SharedToken).ConfigureAwait(false);