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