Пример #1
0
 public FileDownloader(ILogger <FileDownloader> logger,
                       IWebClientFactory webClientFactory,
                       IConfigurationOptions configuration,
                       ILinksCache linksCache,
                       IDownloadProgressCache downloadProgressCache,
                       INotificationService notificationService)
 {
     _logger                = logger;
     _webClientFactory      = webClientFactory;
     _configuration         = configuration;
     _linksCache            = linksCache;
     _downloadProgressCache = downloadProgressCache;
     _notificationService   = notificationService;
 }
Пример #2
0
 public CommandPrompt(ILogger <CommandPrompt> logger,
                      ILinksCache linksCache,
                      ILinksProvider linksProvider,
                      IFileDownloader fileDownloader,
                      IDownloadProgressProvider downloadProgressProvider,
                      IDownloadProgressMonitor downloadProgressMonitor,
                      ITextProvider textProvider,
                      IConfigurationService configurationService)
 {
     _logger                   = logger;
     _linksCache               = linksCache;
     _linksProvider            = linksProvider;
     _fileDownloader           = fileDownloader;
     _downloadProgressProvider = downloadProgressProvider;
     _downloadProgressMonitor  = downloadProgressMonitor;
     _textProvider             = textProvider;
     _configurationService     = configurationService;
 }