예제 #1
0
        public async Task CreateClientAsync()
        {
            var elasticsearchConnectionFactory = new ElasticsearchConnectionFactory(new Settings {
                Nodes = new[] { "http://test.com" }
            });
            var client = await elasticsearchConnectionFactory.CreateClientAsync();

            Assert.NotNull(client);
        }
예제 #2
0
        public void CreateClient()
        {
            var elasticsearchConnectionFactory = new ElasticsearchConnectionFactory(new Settings {
                Nodes = new[] { "http://test.com" }
            });
            var client = elasticsearchConnectionFactory.CreateClient();

            Assert.NotNull(client);
        }