public IEnumerable <string> GetServerParkNames(ConnectionModel connectionModel) { var connection = _connectionFactory.GetConnection(connectionModel); var serverParks = connection.ServerParks; if (!serverParks.Any()) { throw new DataNotFoundException("No server parks found"); } return(serverParks.Select(sp => sp.Name)); }
public bool ConnectionToBlaiseIsHealthy() { try { _connectedServerFactory.GetConnection(_connectionModel); return(true); } catch { return(false); } }
public IEnumerable <IServerPark> GetServerParks(ConnectionModel connectionModel) { var connection = _connectionFactory.GetConnection(connectionModel); var serverParks = connection.ServerParks; if (!serverParks.Any()) { throw new DataNotFoundException("No server parks found"); } return(serverParks); }
public IEnumerable <IUser> GetUsers(ConnectionModel connectionModel) { var connection = _connectedServerFactory.GetConnection(connectionModel); return(connection.Users); }