ProcessManager.cs 551 B

1234567891011121314151617181920212223
  1. using MediaBrowser.Controller.Diagnostics;
  2. using System.Diagnostics;
  3. namespace MediaBrowser.Server.Mono.Diagnostics
  4. {
  5. public class ProcessManager : IProcessManager
  6. {
  7. public void SuspendProcess(Process process)
  8. {
  9. process.PriorityClass = ProcessPriorityClass.Idle;
  10. }
  11. public void ResumeProcess(Process process)
  12. {
  13. process.PriorityClass = ProcessPriorityClass.Normal;
  14. }
  15. public bool SupportsSuspension
  16. {
  17. get { return true; }
  18. }
  19. }
  20. }