public SceneMappingService(ISceneMappingRepository repository, ISceneMappingProxy sceneMappingProxy, ICacheManger cacheManger, Logger logger) { _repository = repository; _sceneMappingProxy = sceneMappingProxy; _getSceneNameCache = cacheManger.GetCache <SceneMapping>(GetType(), "scene_name"); _gettvdbIdCache = cacheManger.GetCache <SceneMapping>(GetType(), "tvdb_id"); _logger = logger; }
public SceneMappingService(ISceneMappingRepository repository, ICacheManager cacheManager, IEnumerable <ISceneMappingProvider> sceneMappingProviders, Logger logger) { _repository = repository; _sceneMappingProviders = sceneMappingProviders; _gettvdbIdCache = cacheManager.GetCache <SceneMapping>(GetType(), "tvdb_id"); _findbytvdbIdCache = cacheManager.GetCache <List <SceneMapping> >(GetType(), "find_tvdb_id"); _logger = logger; }
public SceneMappingService(ISceneMappingRepository repository, ICacheManager cacheManager, IEnumerable <ISceneMappingProvider> sceneMappingProviders, IEventAggregator eventAggregator, Logger logger) { _repository = repository; _sceneMappingProviders = sceneMappingProviders; _eventAggregator = eventAggregator; _logger = logger; _getTvdbIdCache = cacheManager.GetCacheDictionary <List <SceneMapping> >(GetType(), "tvdb_id"); _findByTvdbIdCache = cacheManager.GetCacheDictionary <List <SceneMapping> >(GetType(), "find_tvdb_id"); }