示例#1
0
        public SearchResultViewVM(
            IEventAggregator eventAggregator,
            IApiService apiService,
            IAuthService authService,
            IDialogService dialogService,
            INavigationService navigationService,
            IPreferencesService preferencesService,
            ISearchService searchService,
            IFilenameService filenameService)
        {
            _eventAggregator    = eventAggregator;
            _apiService         = apiService;
            _dialogService      = dialogService;
            _navigationService  = navigationService;
            _preferencesService = preferencesService;
            _searchService      = searchService;
            _filenameService    = filenameService;

            _searchService.PropertyChanged += SearchService_PropertyChanged;

            _commandLockObject = new object();

            _eventAggregator.GetEvent <SubOnlyAuthChangedEvent>().Subscribe(SubOnlyAuthChanged);

            _isAuthenticatedSubOnly = authService.IsAuthenticatedSubOnly;
        }
示例#2
0
        public TwitchService(
            IPreferencesService preferencesService,
            IProcessingService processingService,
            IRuntimeDataService runtimeDataService,
            IFilenameService filenameService,
            IEventAggregator eventAggregator)
        {
            _preferencesService = preferencesService;
            _processingService  = processingService;
            _runtimeDataService = runtimeDataService;
            _filenameService    = filenameService;
            _eventAggregator    = eventAggregator;

            _videos = new ObservableCollection <TwitchVideo>();
            _videos.CollectionChanged += Videos_CollectionChanged;

            _downloads = new ObservableCollection <TwitchVideoDownload>();
            _downloads.CollectionChanged += Downloads_CollectionChanged;

            _downloadTasks = new ConcurrentDictionary <string, DownloadTask>();

            _appDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            _changeDownloadLockObject = new object();

            _downloadTimer = new Timer(DownloadTimerCallback, null, 0, TIMER_INTERVALL);

            _eventAggregator.GetEvent <RemoveDownloadEvent>().Subscribe(Remove, ThreadOption.UIThread);
        }
 public FundingSummaryReport(IFundingSummaryReportBuilder builder, IStreamProviderService streamProviderService, ILogger logger, IExcelService excelService, IFilenameService filenameService)
 {
     _builder = builder;
     _streamProviderService = streamProviderService;
     _logger          = logger;
     _excelService    = excelService;
     _filenameService = filenameService;
 }
 private FundingSummaryReport NewService(
     IFundingSummaryReportBuilder builder         = null,
     IStreamProviderService streamProviderService = null,
     ILogger logger                   = null,
     IExcelService excelService       = null,
     IFilenameService filenameService = null)
 {
     return(new FundingSummaryReport(builder, streamProviderService, logger, excelService, filenameService));
 }
 public OccupancyReport(
     ICsvFileService csvFileService,
     IFilenameService filenameService,
     IClassMapFactory <OccupancyReportModel> classMapFactory,
     ILogger logger)
 {
     _csvFileService  = csvFileService;
     _filenameService = filenameService;
     _classMapFactory = classMapFactory;
     _logger          = logger;
 }
示例#6
0
 public ReportingController(
     IEnumerable <IModelReport> ncsReports,
     IZipService zipService,
     IFilenameService filenameService,
     [KeyFilter(PersistenceStorageKeys.DctAzureStorage)] IFileService dctFileService,
     [KeyFilter(PersistenceStorageKeys.DssAzureStorage)] IFileService dssFileService)
 {
     _ncsReports      = ncsReports;
     _zipService      = zipService;
     _filenameService = filenameService;
     _dctFileService  = dctFileService;
     _dssFileService  = dssFileService;
 }
示例#7
0
        public VideosViewVM(ITwitchService twitchService,
                            IGuiService guiService,
                            IEventAggregator eventAggregator,
                            IPreferencesService preferencesService,
                            IFilenameService filenameService)
        {
            this.twitchService      = twitchService;
            this.guiService         = guiService;
            this.eventAggregator    = eventAggregator;
            this.preferencesService = preferencesService;
            this.filenameService    = filenameService;

            this.twitchService.PropertyChanged += TwitchService_PropertyChanged;

            this.commandLockObject = new object();
        }
示例#8
0
        public DownloadViewVM(
            IDialogService dialogService,
            IDownloadService downloadService,
            IFilenameService filenameService,
            IPreferencesService preferencesService,
            INavigationService navigationService,
            INotificationService notificationService)
        {
            _dialogService       = dialogService;
            _downloadService     = downloadService;
            _filenameService     = filenameService;
            _preferencesService  = preferencesService;
            _navigationService   = navigationService;
            _notificationService = notificationService;

            _commandLockObject = new object();
        }
 public FundingTask(
     ILogger logger,
     IDssDataRetrievalService dssDataRetrievalService,
     IFundingService fundingService,
     IPersistenceService persistenceService,
     IStorageService storageService,
     IFilenameService filenameService,
     IDateTimeProvider dateTimeProvider)
 {
     _logger = logger;
     _dssDataRetrievalService = dssDataRetrievalService;
     _fundingService          = fundingService;
     _persistenceService      = persistenceService;
     _storageService          = storageService;
     _filenameService         = filenameService;
     _dateTimeProvider        = dateTimeProvider;
 }
示例#10
0
        public SearchResultViewVM(
            ITwitchService twitchService,
            IDialogService dialogService,
            INavigationService navigationService,
            IPreferencesService preferencesService,
            IFilenameService filenameService)
        {
            _twitchService      = twitchService;
            _dialogService      = dialogService;
            _navigationService  = navigationService;
            _preferencesService = preferencesService;
            _filenameService    = filenameService;

            _twitchService.PropertyChanged += TwitchService_PropertyChanged;

            _commandLockObject = new object();
        }
示例#11
0
        public DownloadViewVM(
            IDialogService dialogService,
            IFilenameService filenameService,
            IPreferencesService preferencesService,
            ITwitchService twitchService,
            INavigationService navigationService,
            INotificationService notificationService)
        {
            this._dialogService       = dialogService;
            this._filenameService     = filenameService;
            this._preferencesService  = preferencesService;
            this._twitchService       = twitchService;
            this._navigationService   = navigationService;
            this._notificationService = notificationService;

            this._commandLockObject = new object();
        }
        public SearchResultViewVM(
            ITwitchService twitchService,
            IDialogService dialogService,
            INavigationService navigationService,
            INotificationService notificationService,
            IEventAggregator eventAggregator,
            IPreferencesService preferencesService,
            IFilenameService filenameService)
        {
            this._twitchService        = twitchService;
            this._dialogService        = dialogService;
            this._navigationService    = navigationService;
            this._notificationsService = notificationService;
            this._eventAggregator      = eventAggregator;
            this._preferencesService   = preferencesService;
            this._filenameService      = filenameService;

            this._twitchService.PropertyChanged += this.TwitchService_PropertyChanged;

            this._commandLockObject = new object();
        }
 private OccupancyReport NewService(ICsvFileService csvFileService = null, IFilenameService filenameService = null, IClassMapFactory <OccupancyReportModel> mapFactory = null, ILogger logger = null)
 {
     return(new OccupancyReport(csvFileService, filenameService, mapFactory, logger));
 }