public ElasticsearchProvider(IOptions <HttpTrackerElasticsearchOptions> options) { Options = options.Value; }
public HttpTrackerLogRepository(IElasticsearchProvider elasticsearchProvider, HttpTrackerElasticsearchOptions options, string name) : base(elasticsearchProvider) { var indexName = $"{IndexConsts.IndexNames.HttpTrackerLog}_{name}"; if (!string.IsNullOrEmpty(options.IndexPrefix)) { indexName = $"{options.IndexPrefix}_{indexName}"; } IndexName = indexName; }
public HttpTrackerLogRepositoryFactory(IElasticsearchProvider elasticsearchProvider, IOptions <HttpTrackerElasticsearchOptions> options) { _elasticsearchProvider = elasticsearchProvider; Options = options.Value; }