1 write to _memoryLimit
System.Runtime.Caching (1)
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
223
_memoryLimit
= cacheMemoryLimit != 0 ?
9 references to _memoryLimit
System.Runtime.Caching (9)
System\Runtime\Caching\CacheMemoryMonitor.cs (9)
37
get { return
_memoryLimit
; }
179
if (
_memoryLimit
<= 0)
187
if (cacheSize >
_memoryLimit
)
189
cacheSize =
_memoryLimit
;
198
int result = (int)(cacheSize * 100 /
_memoryLimit
);
208
if (cacheSize >
_memoryLimit
)
210
percent = Math.Min(100, (int)((cacheSize -
_memoryLimit
) * 100L / cacheSize));
227
Dbg.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (
_memoryLimit
>> MEGABYTE_SHIFT) + "Mb");
229
if (
_memoryLimit
> 0)