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 ElasticsearchRepositoryBase(IElasticsearchProvider elasticsearchProvider) { _elasticsearchProvider = elasticsearchProvider; }
public HttpTrackerLogRepositoryFactory(IElasticsearchProvider elasticsearchProvider, IOptions <HttpTrackerElasticsearchOptions> options) { _elasticsearchProvider = elasticsearchProvider; Options = options.Value; }