예제 #1
0
        public ElasticIndexer(IOptions <ElasticCsvIndexerOptions> options)
        {
            _indexerOptions = options?.Value;
            var settings = new ConnectionSettings(new Uri(_indexerOptions.Elastic.Node));

            elasticClient = new ElasticClient(settings);
        }
예제 #2
0
 public Worker(ILogger <Worker> logger,
               IElasticIndexer elasticIndexer,
               IOptions <ElasticCsvIndexerOptions> options)
 {
     _logger         = logger;
     _elasticIndexer = elasticIndexer;
     _indexerOptions = options?.Value;
 }