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);
     }
 }
示例#3
0
        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);
        }
示例#4
0
        public IEnumerable <IUser> GetUsers(ConnectionModel connectionModel)
        {
            var connection = _connectedServerFactory.GetConnection(connectionModel);

            return(connection.Users);
        }