protected override void StopImpl() { lock (instance) { if (RuntimeUtils.Stoppable(this.State)) { this.State = RunState.Running; } } }
protected override void StopImpl() { lock (instance) { if (RuntimeUtils.Stoppable(this.State)) { Log("Stop", LogLevel.Info, "Called"); this.State = RunState.Stopped; } } }
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; } } }