public ElasticsearchProvider(IOptions <HttpTrackerElasticsearchOptions> options)
 {
     Options = options.Value;
 }
예제 #2
0
        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;
 }