示例#1
0
 /// <summary>
 /// 初始化一个<see cref="ElasticsearchClientBuilder"/>类型的实例
 /// </summary>
 /// <param name="configProvider">配置提供程序</param>
 public ElasticsearchClientBuilder(IElasticsearchConfigProvider configProvider)
 {
     _configProvider = configProvider;
 }
 /// <summary>
 /// 初始化一个<see cref="ElasticsearchClient"/>类型的实例
 /// </summary>
 /// <param name="configProvider">配置提供程序</param>
 public ElasticsearchClient(IElasticsearchConfigProvider configProvider)
 {
     _configProvider = configProvider ?? throw new ArgumentNullException(nameof(configProvider));
     _builder        = new ElasticsearchClientBuilder(configProvider);
 }