コード例 #1
0
 public CragsManager(ICragsRepository cragsRepository, ICacheHandler cacheHandler, IStatisticsService statisticsService, IElasticService elasticService) : base(cragsRepository)
 {
     _cragsRepository   = cragsRepository;
     _cragsCache        = cacheHandler.CragsCache;
     _cragsCacheLock    = cacheHandler.CragsCacheLock;
     _statisticsService = statisticsService;
     _elasticService    = elasticService;
 }
コード例 #2
0
 public StatisticsService(IAreasRepository areasRepository,
                          ICragsRepository cragsRepository,
                          ISectorsRepository sectorsRepository,
                          IAscentsRepository ascentsRepository,
                          ICacheHandler cacheHandler,
                          IElasticService elasticService)
 {
     _areasRepository   = areasRepository;
     _cragsRepository   = cragsRepository;
     _sectorsRepository = sectorsRepository;
     _ascentsRepository = ascentsRepository;
     _cragsCache        = cacheHandler.CragsCache;
     _cragsCacheLock    = cacheHandler.CragsCacheLock;
     _elasticService    = elasticService;
 }