1 write to _allStats
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
61
_allStats
= new List<WeakReference<Stats>>();
12 references to _allStats
Microsoft.Extensions.Caching.Memory (12)
MemoryCache.cs (12)
233
if (
_allStats
is not null)
254
if (
_allStats
is not null)
309
if (
_allStats
is not null)
351
lock (
_allStats
!)
356
foreach (WeakReference<Stats> wr in
_allStats
)
390
lock (
_allStats
!)
392
for (int i = 0; i <
_allStats
.Count; i++)
394
if (!
_allStats
[i].TryGetTarget(out Stats? stats))
396
_allStats
.RemoveAt(i);
403
_allStats
.TrimExcess();
409
lock (
_allStats
!)
411
_allStats
.Add(new WeakReference<Stats>(current));