public ElasticIndexer(IOptions <ElasticCsvIndexerOptions> options) { _indexerOptions = options?.Value; var settings = new ConnectionSettings(new Uri(_indexerOptions.Elastic.Node)); elasticClient = new ElasticClient(settings); }
public Worker(ILogger <Worker> logger, IElasticIndexer elasticIndexer, IOptions <ElasticCsvIndexerOptions> options) { _logger = logger; _elasticIndexer = elasticIndexer; _indexerOptions = options?.Value; }