示例#1
0
 public virtual void EnsurePriority(object sender)
 {
     try
     {
         if (_processProvider.GetCurrentProcessPriority() != ProcessPriorityClass.Normal)
         {
             _processProvider.SetPriority(_processProvider.GetCurrentProcess().Id, ProcessPriorityClass.Normal);
         }
     }
     catch (Exception e)
     {
         _logger.WarnException("Unable to verify priority", e);
     }
 }