コード例 #1
0
 protected override void OnContinue()
 {
     ServiceLogger.Log(String.Format(@"Resuming {0}.", ServiceName));
     ResumeRunner();
     ServiceLogger.Log(String.Format(@"{0} resumed.", ServiceName));
 }
コード例 #2
0
 protected override void OnPause()
 {
     ServiceLogger.Log(String.Format(@"Pausing {0}.", ServiceName));
     PauseRunner();
     ServiceLogger.Log(String.Format(@"{0} paused.", ServiceName));
 }
コード例 #3
0
 protected override void OnStop()
 {
     ServiceLogger.Log(String.Format(@"Stopping {0}.", ServiceName));
     StopRunner();
     ServiceLogger.Log(String.Format(@"{0} stopped.", ServiceName));
 }
コード例 #4
0
 protected override void OnStart(string[] args)
 {
     ServiceLogger.Log(String.Format(@"Starting {0}.", ServiceName));
     StartRunner();
     ServiceLogger.Log(String.Format(@"{0} started.", ServiceName));
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 protected override void OnContinue()
 {
     ServiceLogger.Log(String.Format(@"{0} continued.", ServiceName));
 }
コード例 #6
0
 /// <summary>
 ///
 /// </summary>
 protected override void OnPause()
 {
     ServiceLogger.Log(String.Format(@"{0} paused.", ServiceName));
 }