4 writes to _memoryLimit
System.Runtime.Caching (4)
System\Caching\CacheMemoryMonitor.cs (4)
212
_memoryLimit
= 0;
218
_memoryLimit
= EffectiveProcessMemoryLimit;
222
_memoryLimit
= Math.Min(_memoryLimit, cacheMemoryLimit);
226
_memoryLimit
= cacheMemoryLimit;
12 references to _memoryLimit
System.Runtime.Caching (12)
System\Caching\CacheMemoryMonitor.cs (12)
35
get { return
_memoryLimit
; }
167
if (
_memoryLimit
<= 0) {
174
if (cacheSize >
_memoryLimit
) {
175
cacheSize =
_memoryLimit
;
185
int result = (int)(cacheSize * 100 /
_memoryLimit
);
193
if (cacheSize >
_memoryLimit
) {
194
percent = Math.Min(100, (int)((cacheSize -
_memoryLimit
) * 100L / cacheSize));
216
if (cacheMemoryLimit == 0 &&
_memoryLimit
== 0) {
220
else if (cacheMemoryLimit != 0 &&
_memoryLimit
!= 0) {
222
_memoryLimit = Math.Min(
_memoryLimit
, cacheMemoryLimit);
229
Dbg.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (
_memoryLimit
>> MEGABYTE_SHIFT) + "Mb");
231
if (
_memoryLimit
> 0) {