Esempio n. 1
0
 public SearchService(ElasticClientProvider clientProvider)
 {
     this.client = clientProvider.Client;
 }
Esempio n. 2
0
 public DataIndexer(ElasticClientProvider clientProvider, IHostingEnvironment env, IOptions <ElasticConnectionSettings> settings)
 {
     this.client          = clientProvider.Client;
     this.contentRootPath = Path.Combine(env.ContentRootPath, "data");
     this.defaultIndex    = settings.Value.DefaultIndex;
 }