コード例 #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);
        }