示例#1
0
 protected override void OnStop()
 {
     if (!UnderPowerMonitorScheduler.GetInstance().IsShutdown)
     {
         UnderPowerMonitorScheduler.GetInstance().Shutdown(false);
     }
 }
示例#2
0
 protected override void OnContinue()
 {
     UnderPowerMonitorScheduler.GetInstance().ResumeAll();
     base.OnContinue();
 }
示例#3
0
 protected override void OnPause()
 {
     UnderPowerMonitorScheduler.GetInstance().PauseAll();
     base.OnPause();
 }
示例#4
0
 protected override void OnStart(string[] args)
 {
     UnderPowerMonitorScheduler.GetInstance().Start();
 }