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;
        }
Beispiel #2
0
 public SabnzbdClient(IConfigService configService, IHttpProvider httpProvider, ICacheManger cacheManger, Logger logger)
 {
     _configService = configService;
     _httpProvider  = httpProvider;
     _queueCache    = cacheManger.GetCache <IEnumerable <QueueItem> >(GetType(), "queue");
     _logger        = logger;
 }
 public FileNameBuilder(INamingConfigService namingConfigService,
                        IQualityDefinitionService qualityDefinitionService,
                        ICacheManger cacheManger,
                        Logger logger)
 {
     _namingConfigService = namingConfigService;
     _qualityDefinitionService = qualityDefinitionService;
     _patternCache = cacheManger.GetCache<EpisodeFormat>(GetType());
     _logger = logger;
 }
Beispiel #4
0
 public SabnzbdClient(IConfigService configService,
                      IHttpProvider httpProvider,
                      ICacheManger cacheManger,
                      IParsingService parsingService,
                      Logger logger)
 {
     _configService = configService;
     _httpProvider = httpProvider;
     _parsingService = parsingService;
     _queueCache = cacheManger.GetCache<IEnumerable<QueueItem>>(GetType(), "queue");
     _logger = logger;
 }
Beispiel #5
0
 public XemService(IEpisodeService episodeService,
                   IXemProxy xemProxy,
                   ISeriesService seriesService, ICacheManger cacheManger, Logger logger)
 {
     if (seriesService == null)
     {
         throw new ArgumentNullException("seriesService");
     }
     _episodeService = episodeService;
     _xemProxy       = xemProxy;
     _seriesService  = seriesService;
     _logger         = logger;
     _logger         = logger;
     _cache          = cacheManger.GetCache <bool>(GetType());
 }
Beispiel #6
0
 public CommandTrackingService(ICacheManger cacheManger)
 {
     _cache = cacheManger.GetCache <Command>(GetType());
 }
 public ConfigFileProvider(IAppFolderInfo appFolderInfo, ICacheManger cacheManger, IEventAggregator eventAggregator)
 {
     _cache           = cacheManger.GetCache <string>(GetType());
     _eventAggregator = eventAggregator;
     _configFile      = appFolderInfo.GetConfigPath();
 }