/// <summary> /// Disconnects/Stops a client /// </summary> public bool Stop() { try { _isConnected = false; _rediSocketConnection.Disconnect(); if (LogoutArrived != null) { LogoutArrived(_marketDataProviderName); } if (_logger.IsInfoEnabled) { _logger.Info("Session closed.", _type.FullName, "Stop"); } return(true); } catch (Exception exception) { _logger.Error(exception, _type.FullName, "Stop"); return(false); } }