/// <summary> /// Stop the service. /// </summary> public void StopService() { _stopFlag = true; Stop(); if (_theThread.IsAlive) { ThreadStop.Set(); _theThread.Join(); _theThread = null; } }
/// <summary> /// Stop the service. /// </summary> public void StopService() { StopFlag = true; ThreadStop.Set(); }