public CragsManager(ICragsRepository cragsRepository, ICacheHandler cacheHandler, IStatisticsService statisticsService, IElasticService elasticService) : base(cragsRepository) { _cragsRepository = cragsRepository; _cragsCache = cacheHandler.CragsCache; _cragsCacheLock = cacheHandler.CragsCacheLock; _statisticsService = statisticsService; _elasticService = elasticService; }
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; }