示例#1
0
        protected virtual void UpdateCurrentUsageValue()
        {
            int oldUsage = _cachedCurrentUsageInMb;

            _cachedCurrentUsageInMb = _memoryMonitor.GetCurrentUsageInMb();
            _logger.DebugFormat("Updated cached memory usage value from [{0}mb] to [{1}mb]", oldUsage, _cachedCurrentUsageInMb);
        }
        protected virtual void UpdateCurrentUsageValue(object state = null)
        {
            var oldUsage = _cachedCurrentUsageInMb;

            _cachedCurrentUsageInMb = _memoryMonitor.GetCurrentUsageInMb();
            _logger.LogDebug($"Updated cached memory usage value from [{oldUsage}mb] to [{_cachedCurrentUsageInMb}mb]");
        }
        protected virtual void UpdateCurrentUsageValue()
        {
            var oldUsage = _cachedCurrentUsageInMb;

            _cachedCurrentUsageInMb = _memoryMonitor.GetCurrentUsageInMb();
            Log.Debug("Updated cached memory usage value from [{0}mb] to [{1}mb]", oldUsage, _cachedCurrentUsageInMb);
        }
示例#4
0
 public virtual int GetCurrentUsageInMb()
 {
     return(_memoryMonitor.GetCurrentUsageInMb());
 }