public SystemMemoryStatusProvider(IMemoryUnitConverter memoryUnitConverter) { if (memoryUnitConverter == null) { throw new ArgumentNullException("memoryUnitConverter"); } this.memoryUnitConverter = memoryUnitConverter; // initialize performance counters this.freeMemoryInMegaBytesPerformanceCounter = new PerformanceCounter("Memory", "Available MBytes"); this.usedMemoryInBytesPerformanceCounter = new PerformanceCounter("Memory", "Committed Bytes"); }
public SystemMemoryStatusProvider(IMemoryUnitConverter memoryUnitConverter) { if (memoryUnitConverter == null) { throw new ArgumentNullException("memoryUnitConverter"); } this.memoryUnitConverter = memoryUnitConverter; // initialize performance counters this.freeMemoryInMegaBytesPerformanceCounter = new PerformanceCounter("Memory", "Available MBytes"); this.usedMemoryInBytesPerformanceCounter = new PerformanceCounter("Memory", "Committed Bytes"); }
public void Setup() { this.memoryUnitConverter = new MemoryUnitConverter(); }
public void Setup() { this.memoryUnitConverter = new MemoryUnitConverter(); }