19 references to Dbg
System.Runtime.Caching (19)
System\Caching\CacheMemoryMonitor.cs (3)
151
Dbg
.Assert(SAMPLE_COUNT == 2);
229
Dbg
.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _memoryLimit=" + (_memoryLimit >> MEGABYTE_SHIFT) + "Mb");
240
Dbg
.Trace("MemoryCacheStats", "CacheMemoryMonitor.SetLimit: _pressureHigh=" + _pressureHigh +
System\Caching\ChangeMonitor.cs (3)
136
Dbg
.Assert(_flags[INITIALIZED], "It is critical that INITIALIZED is set before CHANGED is checked below");
151
Dbg
.Assert(_flags[CHANGED], "It is critical that CHANGED is set before INITIALIZED is checked below.");
197
Dbg
.Assert(_flags[CHANGED], "It is critical that CHANGED is set before INITIALIZED is checked below.");
System\Caching\MemoryCache.cs (1)
114
Dbg
.Fail("Reason should never be CacheEntryRemovedReason.Evicted since the entry was inserted as NotRemovable.");
System\Caching\MemoryCacheEntry.cs (1)
215
Dbg
.Assert(_fields._dependents == null, "_fields._dependents == null");
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
116
Dbg
.Assert(keys != null && keys.Count > 0, "keys != null && keys.Count > 0");
System\Caching\MemoryCacheKeyEqualityComparer.cs (2)
11
Dbg
.Assert(x != null && x is MemoryCacheKey);
12
Dbg
.Assert(y != null && y is MemoryCacheKey);
System\Caching\MemoryCacheStatistics.cs (1)
259
Dbg
.Trace("MemoryCacheStats", "Stopped CacheMemoryTimers");
System\Caching\MemoryCacheStore.cs (3)
91
Dbg
.Assert(entry.State == EntryState.RemovingFromCache, "entry.State = EntryState.RemovingFromCache");
235
Dbg
.Assert(_useInsertBlock == false, "_useInsertBlock == false");
316
Dbg
.Assert(percent <= 100, "percent <= 100");
System\Caching\MemoryMonitor.cs (3)
67
Dbg
.Assert(_pressureHigh > 0, "_pressureHigh > 0");
68
Dbg
.Assert(_pressureLow > 0, "_pressureLow > 0");
69
Dbg
.Assert(_pressureLow <= _pressureHigh, "_pressureLow <= _pressureHigh");
System\Caching\PhysicalMemoryMonitor.cs (1)
81
Dbg
.Assert(memory != 0, "memory != 0");