コード例 #1
0
        public LogElasticRepository(IElasticContext elasticContext, ILogElasticMappers <T> logElasticMappers)
        {
            _elasticContext    = elasticContext;
            _logElasticMappers = logElasticMappers;

            _elasticContext.SetupIndex <Log>(defaultIndex);

            //_elasticContext.ElasticClient.ClearCache(defaultIndex);
        }
コード例 #2
0
        public DashboardElasticRepository(IElasticContext elasticContext, IDashboardElasticMappers <T> dashboardElasticMappers)
        {
            _elasticContext          = elasticContext;
            _dashboardElasticMappers = dashboardElasticMappers;

            _elasticContext.SetupIndex <DailyRate>(defaultIndex);

            //_elasticContext.ElasticClient.ClearCache(defaultIndex);
        }
コード例 #3
0
 public ElasticSearchHeroService(IElasticContext elasticContext) : base(elasticContext)
 {
 }
コード例 #4
0
 public ComicsElasticServiceBase(IElasticContext elasticContext)
 {
     _elasticContext = elasticContext;
     currentIndex    = typeof(TDocument).Name.ToLower();
 }