Example #1
0
 public DownloadClientProvider(IDownloadClientStatusService downloadClientStatusService, IDownloadClientFactory downloadClientFactory, ICacheManager cacheManager, Logger logger)
 {
     _logger = logger;
     _downloadClientFactory       = downloadClientFactory;
     _downloadClientStatusService = downloadClientStatusService;
     _lastUsedDownloadClient      = cacheManager.GetCache <int>(GetType(), "lastDownloadClientId");
 }
Example #2
0
 public DownloadClientFactory(IDownloadClientStatusService downloadClientStatusService,
                              IDownloadClientRepository providerRepository,
                              IEnumerable <IDownloadClient> providers,
                              IContainer container,
                              IEventAggregator eventAggregator,
                              Logger logger)
     : base(providerRepository, providers, container, eventAggregator, logger)
 {
     _downloadClientStatusService = downloadClientStatusService;
     _logger = logger;
 }
Example #3
0
 public DownloadService(IProvideDownloadClient downloadClientProvider,
                        IDownloadClientStatusService downloadClientStatusService,
                        IIndexerStatusService indexerStatusService,
                        IRateLimitService rateLimitService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _downloadClientProvider      = downloadClientProvider;
     _downloadClientStatusService = downloadClientStatusService;
     _indexerStatusService        = indexerStatusService;
     _rateLimitService            = rateLimitService;
     _eventAggregator             = eventAggregator;
     _logger = logger;
 }
Example #4
0
        public DownloadMonitoringService(IDownloadClientStatusService downloadClientStatusService,
                                         IDownloadClientFactory downloadClientFactory,
                                         IEventAggregator eventAggregator,
                                         IManageCommandQueue manageCommandQueue,
                                         IConfigService configService,
                                         IFailedDownloadService failedDownloadService,
                                         ICompletedDownloadService completedDownloadService,
                                         ITrackedDownloadService trackedDownloadService,
                                         Logger logger)
        {
            _downloadClientStatusService = downloadClientStatusService;
            _downloadClientFactory       = downloadClientFactory;
            _eventAggregator             = eventAggregator;
            _manageCommandQueue          = manageCommandQueue;
            _configService            = configService;
            _failedDownloadService    = failedDownloadService;
            _completedDownloadService = completedDownloadService;
            _trackedDownloadService   = trackedDownloadService;
            _logger = logger;

            _refreshDebounce = new Debouncer(QueueRefresh, TimeSpan.FromSeconds(5));
        }
 public DownloadClientStatusCheck(IDownloadClientFactory providerFactory, IDownloadClientStatusService providerStatusService)
 {
     _providerFactory       = providerFactory;
     _providerStatusService = providerStatusService;
 }
 public DownloadClientStatusCheck(IDownloadClientFactory providerFactory, IDownloadClientStatusService providerStatusService, ILocalizationService localizationService)
     : base(localizationService)
 {
     _providerFactory       = providerFactory;
     _providerStatusService = providerStatusService;
 }