private static void StopThreadStart() { if (ServiceHelper.StopTaskManagerAccessService(10000)) { if (Stopped != null) { Stopped.Invoke(null, new EventArgs()); } } else { if (StopFailed != null) { StopFailed.Invoke(null, new EventArgs()); } } }
internal void OnStopFailed() { Log.Warning($"Server {this.ID:00} Stop Failed."); StopFailed.Invoke(this, null); }