Esempio n. 1
0
        private static CouchServer ConnectToServer(ConnectionDetails conDetails)
        {
            RestClient rest = new RestClient(conDetails);

            return new CouchServer(rest, new JsonSerializer(), conDetails);
        }
Esempio n. 2
0
        public static CouchDatabase ConnectToDatabase(string connectionString)
        {
            var conDetails = new ConnectionDetails(connectionString);

            return ConnectToServer(conDetails).ConnectToDatabase(conDetails["database"]);
        }
Esempio n. 3
0
        public static CouchServer ConnectToServer(string connectionString)
        {
            var conDetails = new ConnectionDetails(connectionString);

            return ConnectToServer(conDetails);
        }
Esempio n. 4
0
        public static ElasticIndex ConnectToIndex(string connectionString)
        {
            var conDetails = new ConnectionDetails(connectionString);

            return ConnectToServer(conDetails).ConnectToIndex(conDetails["index"], conDetails["type"]);
        }