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)
239
if (
_allStats
is not null)
260
if (
_allStats
is not null)
314
if (
_allStats
is not null)
356
lock (
_allStats
!)
361
foreach (WeakReference<Stats> wr in
_allStats
)
395
lock (
_allStats
!)
397
for (int i = 0; i <
_allStats
.Count; i++)
399
if (!
_allStats
[i].TryGetTarget(out Stats? stats))
401
_allStats
.RemoveAt(i);
408
_allStats
.TrimExcess();
414
lock (
_allStats
!)
416
_allStats
.Add(new WeakReference<Stats>(current));