コード例 #1
0
        public ElasticClientFactory(string uri, string defaultIndex, string username, string password)
        {
            var uriuri     = new Uri(uri);
            var settings   = new ConnectionSettings(uriuri, defaultIndex);
            var connection = new BasicallyAuthenticatedHttpConnection(username, password, new ConnectionConfiguration(uriuri));

            this.CreateClient(settings, connection, null, null);
        }
コード例 #2
0
 public ElasticClientFactory(string uri, string defaultIndex, string username, string password) {
     var uriuri = new Uri(uri);
     var settings = new ConnectionSettings(uriuri, defaultIndex);
     var connection = new BasicallyAuthenticatedHttpConnection(username, password, new ConnectionConfiguration(uriuri));
     this.CreateClient(settings, connection, null, null);
 }