예제 #1
0
 protected override void StopImpl()
 {
     lock (instance)
     {
         if (RuntimeUtils.Stoppable(this.State))
         {
             this.State = RunState.Running;
         }
     }
 }
예제 #2
0
 protected override void StopImpl()
 {
     lock (instance)
     {
         if (RuntimeUtils.Stoppable(this.State))
         {
             Log("Stop", LogLevel.Info, "Called");
             this.State = RunState.Stopped;
         }
     }
 }
예제 #3
0
 public void Stop()
 {
     lock (instance)
     {
         if (RuntimeUtils.Stoppable(this.State))
         {
             string meth = "Stop";
             this.State = RunState.Stopping;
             Log(meth, LogLevel.Info, "Called");
             this.State = RunState.Stopped;
         }
     }
 }