예제 #1
0
        public DownloadController(
            IBookDownloader bookDownloader, 
            INavigationService navigationService,
            INotificationsService notificationsService,
            IEventAggregator eventAggregator, 
            IDownloadsContainer container, 
            IBookDownloadsRepository bookDownloadsRepository)
        {
            _bookDownloader = bookDownloader;
            _navigationService = navigationService;
            _notificationsService = notificationsService;
            _eventAggregator = eventAggregator;
            _container = container;
            _bookDownloadsRepository = bookDownloadsRepository;

            _bookDownloader.DownloadCompleted += BookDownloaderOnDownloadCompleted;
            _bookDownloader.DownloadError += BookDownloaderOnDownloadError;
        }
예제 #2
0
        public DownloadController(
            IBookDownloader bookDownloader,
            INavigationService navigationService,
            INotificationsService notificationsService,
            IEventAggregator eventAggregator,
            IDownloadsContainer container,
            IBookDownloadsRepository bookDownloadsRepository)
        {
            _bookDownloader          = bookDownloader;
            _navigationService       = navigationService;
            _notificationsService    = notificationsService;
            _eventAggregator         = eventAggregator;
            _container               = container;
            _bookDownloadsRepository = bookDownloadsRepository;

            _bookDownloader.DownloadCompleted += BookDownloaderOnDownloadCompleted;
            _bookDownloader.DownloadError     += BookDownloaderOnDownloadError;
        }
예제 #3
0
 public BookService(IBookDownloader downloader, IDeserializer deserializer)
 {
     this.downloader   = downloader;
     this.deserializer = deserializer;
 }