Пример #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;
         }
     }
 }