9 references to RefCount
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeState.cs (1)
82public int DebugCallerCount => _cacheItem.RefCount;
Microsoft.Extensions.Caching.Hybrid.Tests (8)
BufferReleaseTests.cs (6)
62Assert.Equal(1, cacheItem.RefCount); 78Assert.Equal(0, cacheItem.RefCount); 163Assert.Equal(1, cacheItem.RefCount); 181Assert.Equal(1, cacheItem.RefCount); // not decremented because there was no need to add the hook 232Assert.Equal(1, cacheItem.RefCount); 249Assert.Equal(0, cacheItem.RefCount);
StampedeTests.cs (2)
560Assert.Equal(callerCount, item.RefCount); 567Assert.Equal(0, item.RefCount);