public DownloadManager(
            ICategoryRepository categoryRepository,
            IRssRepository rssRepository,
            IFinishedDownloadsRepository finishedDownloadsRepository,
            IDependencyComposer composer)
        {
            _categoryRepository = categoryRepository;
            _rssRepository = rssRepository;
            _finishedDownloadsRepository = finishedDownloadsRepository;
            _composer = composer;

            _downloadQueue = new LinkedList<IDownloadItem>();
            _cancellationTokenSources = new Dictionary<IDownloadItem, CancellationTokenSource>();
        }
Пример #2
0
        public DownloadManager(
            ICategoryRepository categoryRepository,
            IRssRepository rssRepository,
            IFinishedDownloadsRepository finishedDownloadsRepository,
            IDependencyComposer composer)
        {
            _categoryRepository          = categoryRepository;
            _rssRepository               = rssRepository;
            _finishedDownloadsRepository = finishedDownloadsRepository;
            _composer = composer;

            _downloadQueue            = new LinkedList <IDownloadItem>();
            _cancellationTokenSources = new Dictionary <IDownloadItem, CancellationTokenSource>();
        }