1 write to _allStats
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
59_allStats = new List<WeakReference<Stats>>();
12 references to _allStats
Microsoft.Extensions.Caching.Memory (12)
MemoryCache.cs (12)
239if (_allStats is not null) 260if (_allStats is not null) 314if (_allStats is not null) 356lock (_allStats!) 361foreach (WeakReference<Stats> wr in _allStats) 395lock (_allStats!) 397for (int i = 0; i < _allStats.Count; i++) 399if (!_allStats[i].TryGetTarget(out Stats? stats)) 401_allStats.RemoveAt(i); 408_allStats.TrimExcess(); 414lock (_allStats!) 416_allStats.Add(new WeakReference<Stats>(current));