public void Pause() { connectionState = UserConnectionState.Disconnected; if (DebugRecorder.LogEnable(_logger)) { _logger.End(); } }
/// <summary> /// Stop the service saftly /// </summary> public void Quit() { _logger.End(); if (_acceptThread.IsAlive) { _acceptThread.Abort(); } if (_affairThread.IsAlive) { _affairThread.Abort(); } if (_heartbeatThread.IsAlive) { _heartbeatThread.Abort(); } }