Ejemplo n.º 1
0
        public DownloadSeedConfigProvider(IDownloadHistoryService downloadHistoryService, ISeedConfigProvider indexerSeedConfigProvider, ICacheManager cacheManager, Logger logger)
        {
            _logger = logger;
            _indexerSeedConfigProvider = indexerSeedConfigProvider;
            _downloadHistoryService    = downloadHistoryService;

            _cacheDownloads = cacheManager.GetRollingCache <CachedSeedConfiguration>(GetType(), "indexerByHash", TimeSpan.FromHours(1));
        }
Ejemplo n.º 2
0
 public TrackedDownloadService(IParsingService parsingService,
                               ICacheManager cacheManager,
                               IHistoryService historyService,
                               IEventAggregator eventAggregator,
                               IDownloadHistoryService downloadHistoryService,
                               Logger logger)
 {
     _parsingService         = parsingService;
     _historyService         = historyService;
     _eventAggregator        = eventAggregator;
     _downloadHistoryService = downloadHistoryService;
     _cache  = cacheManager.GetCache <TrackedDownload>(GetType());
     _logger = logger;
 }
Ejemplo n.º 3
0
 public TrackedDownloadService(IParsingService parsingService,
                               ICacheManager cacheManager,
                               IHistoryService historyService,
                               IConfigService config,
                               ICustomFormatCalculationService formatCalculator,
                               IEventAggregator eventAggregator,
                               IDownloadHistoryService downloadHistoryService,
                               Logger logger)
 {
     _parsingService         = parsingService;
     _historyService         = historyService;
     _cache                  = cacheManager.GetCache <TrackedDownload>(GetType());
     _config                 = config;
     _formatCalculator       = formatCalculator;
     _eventAggregator        = eventAggregator;
     _downloadHistoryService = downloadHistoryService;
     _logger                 = logger;
 }
Ejemplo n.º 4
0
 public AugmentQualityFromReleaseName(IDownloadHistoryService downloadHistoryService)
 {
     _downloadHistoryService = downloadHistoryService;
 }