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

            _elasticContext.SetupIndex <Log>(defaultIndex);

            //_elasticContext.ElasticClient.ClearCache(defaultIndex);
        }
        public DashboardElasticRepository(IElasticContext elasticContext, IDashboardElasticMappers <T> dashboardElasticMappers)
        {
            _elasticContext          = elasticContext;
            _dashboardElasticMappers = dashboardElasticMappers;

            _elasticContext.SetupIndex <DailyRate>(defaultIndex);

            //_elasticContext.ElasticClient.ClearCache(defaultIndex);
        }