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)
37get { return _memoryLimit; } 179if (_memoryLimit <= 0) 187if (cacheSize > _memoryLimit) 189cacheSize = _memoryLimit; 198int result = (int)(cacheSize * 100 / _memoryLimit); 208if (cacheSize > _memoryLimit) 210percent = Math.Min(100, (int)((cacheSize - _memoryLimit) * 100L / cacheSize)); 227Dbg.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (_memoryLimit >> MEGABYTE_SHIFT) + "Mb"); 229if (_memoryLimit > 0)