Пример #1
0
        public TransferViewModel(
            IDownloadsService downloadsService,
            IUploadsService uploadsService,
            IDialogsService dialogsService,
            IAppLoaderService appLoaderService,
            ILocService locService,
            IDispatcherWrapper dispatcherWrapper)
        {
            _downloadsService  = downloadsService;
            _uploadsService    = uploadsService;
            _dialogsService    = dialogsService;
            _appLoaderService  = appLoaderService;
            _locService        = locService;
            _dispatcherWrapper = dispatcherWrapper;

            Downloads = new ObservableCollection <TransferItemViewModel>();
            Uploads   = new ObservableCollection <TransferItemViewModel>();

            ShowInfoCommand           = new DelegateCommand <TransferItemViewModel>(OnShowInfoCommand);
            CancelDownloadCommand     = new DelegateCommand <TransferItemViewModel>(OnCancelDownloadCommand);
            CancelUploadCommand       = new DelegateCommand <TransferItemViewModel>(OnCancelUploadCommand);
            PauseDownloadCommand      = new DelegateCommand <TransferItemViewModel>(OnPauseResumeDownloadCommand);
            ResumeDownloadCommand     = new DelegateCommand <TransferItemViewModel>(OnPauseResumeDownloadCommand);
            CancelAllDownloadsCommand = new DelegateCommand(OnCancelAllDownloadsCommand, CanExecuteCancelAllDownloadsCommand);
            CancelAllUploadsCommand   = new DelegateCommand(OnCancelAllUploadsCommand, CanExecuteCancelAllUploadsCommand);
        }
 public DownloadsController(IDownloadsService downloadsService, IEstablishmentReadService establishmentReadService, IGroupDownloadService groupDownloadService, HttpClientWrapper httpClientHelper)
 {
     _downloadsService         = downloadsService;
     _establishmentReadService = establishmentReadService;
     _groupDownloadService     = groupDownloadService;
     _httpClientHelper         = httpClientHelper;
 }
 public MonitorProgressService(RedseatDbContext dbContext, IShowService showService, IDownloadersService downloaderService, IDownloadsService downloadsService, ILogger <MonitorProgressService> logger, IParserService parserService, IBackgroundJobClient backgroundJobs)
 {
     _dbContext         = dbContext;
     _showService       = showService;
     _downloaderService = downloaderService;
     _downloadsService  = downloadsService;
     _logger            = logger;
     _parserService     = parserService;
     _backgroundJobs    = backgroundJobs;
 }
Пример #4
0
 public DownloadsServiceHelper(
     IDialogsService dialogsService,
     IDownloadsService downloadsService,
     ILocService locService,
     IAppNotificationsService appNotificationsService)
 {
     _dialogsService          = dialogsService;
     _downloadsService        = downloadsService;
     _locService              = locService;
     _appNotificationsService = appNotificationsService;
 }
Пример #5
0
        public TransferNotificationsService(
            IDownloadsService downloadsService,
            IUploadsService uploadsService,
            ILocService locService,
            IAppNotificationsService appNotificationsService)
        {
            _downloadsService        = downloadsService;
            _uploadsService          = uploadsService;
            _locService              = locService;
            _appNotificationsService = appNotificationsService;

            _notifications = new Dictionary <Guid, AppNotification>(4);
        }
Пример #6
0
 public DownloadsController(IDownloadsService IDownloadsService)
 {
     _iDownloadsService = IDownloadsService;
 }
Пример #7
0
 public DownloadsController(IDownloadsService downloadsService)
 {
     this.downloadsService = downloadsService;
 }
 public DownloadsController(IDownloadsService downloadsService, IEstablishmentReadService establishmentReadService, IGroupDownloadService groupDownloadService)
 {
     _downloadsService         = downloadsService;
     _establishmentReadService = establishmentReadService;
     _groupDownloadService     = groupDownloadService;
 }