1 write to _memoryLimit
System.Runtime.Caching (1)
System\Runtime\Caching\CacheMemoryMonitor.cs (1)
228
_memoryLimit
= cacheMemoryLimit != 0 ?
9 references to _memoryLimit
System.Runtime.Caching (9)
System\Runtime\Caching\CacheMemoryMonitor.cs (9)
37
get { return
_memoryLimit
; }
184
if (
_memoryLimit
<= 0)
192
if (cacheSize >
_memoryLimit
)
194
cacheSize =
_memoryLimit
;
203
int result = (int)(cacheSize * 100 /
_memoryLimit
);
213
if (cacheSize >
_memoryLimit
)
215
percent = Math.Min(100, (int)((cacheSize -
_memoryLimit
) * 100L / cacheSize));
232
Dbg.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (
_memoryLimit
>> MEGABYTE_SHIFT) + "Mb");
234
if (
_memoryLimit
> 0)