Esempio n. 1
0
 public HeartbeatService(IFlexClient flexClient, IDateTimeService dateTimeService, IMessenger messenger, ITimerService heartbeatIntervalTimer)
 {
     this._flexClient                      = flexClient;
     this._dateTimeService                 = dateTimeService;
     this._messenger                       = messenger;
     this._heartbeatIntervalTimer          = heartbeatIntervalTimer;
     this._heartbeatIntervalTimer.Interval = 5000.0;
 }
Esempio n. 2
0
 public AssignmentFileMetadataService(IFlexClient flexClient, IConfigurationService configurationService, ILoggerService loggerService, IFileService fileService, IHashValidator hashValidator)
 {
     this._flexClient           = flexClient;
     this._configurationService = configurationService;
     this._loggerService        = loggerService;
     this._fileService          = fileService;
     this._hashValidator        = hashValidator;
 }
Esempio n. 3
0
 public AssignmentFileService(IAssignmentFileMetadataService assignmentFileMetadataService, IDecryptionService decryptionService, IAssignmentFileStorageService assignmentFileStorageService, IFlexClient flexClient, ILoggerService loggerService)
 {
     this._assignmentFileMetadataService = assignmentFileMetadataService;
     this._decryptionService             = decryptionService;
     this._assignmentFileStorageService  = assignmentFileStorageService;
     this._flexClient    = flexClient;
     this._loggerService = loggerService;
 }
Esempio n. 4
0
 public HandInUploadService(IFlexClient flexClient, ITimerService queueRetryTimerService, IMessenger messenger, ILoggerService loggerService)
 {
     this._flexClient             = flexClient;
     this._queueRetryTimerService = queueRetryTimerService;
     this._messenger     = messenger;
     this._loggerService = loggerService;
     this._queueRetryTimerService.AutoReset = false;
 }
Esempio n. 5
0
 public HandInFileService(IFlexClient flexClient, IHashProvider hashProvider, IFileService fileService, IConfigurationService configurationService, IPathService pathService, IDirectoryService directoryService)
 {
     this._flexClient           = flexClient;
     this._hashProvider         = hashProvider;
     this._fileService          = fileService;
     this._configurationService = configurationService;
     this._pathService          = pathService;
     this._directoryService     = directoryService;
 }
Esempio n. 6
0
 public DecryptionService(IFlexClient flexClient, IFileService fileService, IConfigurationService configurationService, IHashValidator hashValidator, ILoggerService loggerService, IFileDecrypter fileDecrypter)
 {
     this._flexClient           = flexClient;
     this._fileService          = fileService;
     this._configurationService = configurationService;
     this._hashValidator        = hashValidator;
     this._loggerService        = loggerService;
     this._fileDecrypter        = fileDecrypter;
 }
Esempio n. 7
0
 public UpdateProgramWindowViewModel(IUpdater updater, IMessenger messenger, IConfigurationService configurationService, ILanguageService languageService, IFlexClient flexClient, ILoggerService loggerService)
 {
     this._updater              = updater;
     this._messenger            = messenger;
     this._configurationService = configurationService;
     this._languageService      = languageService;
     this._flexClient           = flexClient;
     this._loggerService        = loggerService;
     this.UpdateLanguage((OnLanguageChanged)null);
     messenger.Register <OnLanguageChanged>((object)this, new Action <OnLanguageChanged>(this.UpdateLanguage));
     this.CheckForUpdates((OnCheckForUpdates)null);
     messenger.Register <OnCheckForUpdates>((object)this, new Action <OnCheckForUpdates>(this.CheckForUpdates));
 }
Esempio n. 8
0
 public BackupService(IFileService fileService, IConfigurationService configurationService, IFlexClient flexClient, IDirectoryService directoryService, IHashProvider hashProvider, ITimerService backupIntervalTimer, IMessenger messenger, ITimerService noBackupAfterTimer, ILoggerService loggerService)
 {
     this._fileService                   = fileService;
     this._flexClient                    = flexClient;
     this._directoryService              = directoryService;
     this._hashProvider                  = hashProvider;
     this._backupIntervalTimer           = backupIntervalTimer;
     this._noBackupAfterTimer            = noBackupAfterTimer;
     this._loggerService                 = loggerService;
     this._backupIntervalTimer.Interval  = (double)(configurationService.BackupIntervalInSeconds * 1000);
     this._backupIntervalTimer.AutoReset = true;
     this._noBackupAfterTimer.AutoReset  = false;
     this._noBackupAfterTimer.Elapsed   += (ElapsedEventHandler)((sender, args) => this._backupIntervalTimer.Stop());
     this.MaxHandInFileSizeInBytes       = (long)configurationService.MaxHandInFileSizeInBytes;
     messenger.Register <OnNewBackupSettings>((object)this, new Action <OnNewBackupSettings>(this.OnNewBackupSettings));
     messenger.Register <OnHandInFilesizeLimitLoaded>((object)this, new Action <OnHandInFilesizeLimitLoaded>(this.OnHandInFilesizeLimitLoaded));
 }
Esempio n. 9
0
 public OngoingExamViewModel(ILanguageService languageService, IMessenger messenger, ILastSaveViewModel lastSaveViewModel, IExamTimeLeftViewModel examTimeLeftViewModel, IFlexClient flexClient)
 {
     this._languageService             = languageService;
     this._messenger                   = messenger;
     this._flexClient                  = flexClient;
     this.LastSaveViewModel            = lastSaveViewModel;
     this.ExamTimeLeftViewModel        = examTimeLeftViewModel;
     this.AssignmentFilesPathViewModel = new PathLinkViewModel();
     this.HandInPathViewModel          = new PathLinkViewModel();
     this.UpdateLanguage((OnLanguageChanged)null);
     messenger.Register <OnLanguageChanged>((object)this, new Action <OnLanguageChanged>(this.UpdateLanguage));
     messenger.Register <OnExaminationDataLoaded>((object)this, new Action <OnExaminationDataLoaded>(this.OnExaminationDataLoaded));
     messenger.Register <OnWorkspacePathsSet>((object)this, new Action <OnWorkspacePathsSet>(this.OnHandInPathSet));
     messenger.Register <OnEnableHandInReceived>((object)this, new Action <OnEnableHandInReceived>(this.OnEnableHandInReceived));
     messenger.Register <OnAllowHandInReceived>((object)this, new Action <OnAllowHandInReceived>(this.OnAllowHandInReceived));
     messenger.Register <OnExaminationUrlLoaded>((object)this, new Action <OnExaminationUrlLoaded>(this.OnExaminationUrlLoaded));
     this.IsHandInEnabled     = true;
     this.SubmitBlankCommand  = (ICommand) new RelayCommand((Action <object>)(c => this.SubmitBlankClick()), (Predicate <object>)null);
     this.SubmitHandInCommand = (ICommand) new RelayCommand((Action <object>)(c => this.SubmitHandInClick()), (Predicate <object>)null);
 }
Esempio n. 10
0
 public LoginViewModel(IMessenger messenger, IBoardingPassValidator boardingPassValidator, ILanguageService languageService, IConfigurationService configurationService, ITimerService loginAttemptsTimer, IBoardingPassStorageService boardingPassStorageService, IFlexClient flexClient, IHeartbeatService heartbeatService, IStorageCleanerService storageCleanerService)
 {
     this._messenger                  = messenger;
     this._boardingPassValidator      = boardingPassValidator;
     this._languageService            = languageService;
     this._configurationService       = configurationService;
     this._loginAttemptsTimer         = loginAttemptsTimer;
     this._boardingPassStorageService = boardingPassStorageService;
     this._flexClient                 = flexClient;
     this._heartbeatService           = heartbeatService;
     this._storageCleanerService      = storageCleanerService;
     this._messenger.Register <OnSuccessfulHealthCheck>((object)this, new Action <OnSuccessfulHealthCheck>(this.OnSuccessfulHealthCheck));
     this.UpdateText((OnLanguageChanged)null);
     this._messenger.Register <OnLanguageChanged>((object)this, new Action <OnLanguageChanged>(this.UpdateText));
     this._messenger.Register <OnLoginErrorPopupClosed>((object)this, new Action <OnLoginErrorPopupClosed>(this.OnLoginErrorPopupClosed));
     this.LoginCommand = (ICommand) new RelayCommand((Action <object>)(c => this.LoginClick()), (Predicate <object>)null);
     this._loginAttemptsTimer.AutoReset = false;
     this._loginAttemptsTimer.Interval  = (double)(configurationService.BoardingPassLoginLockDurationInSeconds * 1000);
     this._loginAttemptsTimer.Elapsed  += (ElapsedEventHandler)((s, e) =>
     {
         DispatcherHelper.CheckBeginInvokeOnUI((Action)(() => this.CanLogin = true));
         this.LoginAttemptsCounter = 0;
     });
 }
 public RetryConnectionFlexClientDecorator(IFlexClient service)
 {
     this._service = service;
 }
Esempio n. 12
0
 public ServerLogService(IFlexClient flexClient, IDateTimeService dateTimeService)
 {
     this._flexClient      = flexClient;
     this._dateTimeService = dateTimeService;
 }
Esempio n. 13
0
 public GlobalLogService(IFlexClient flexClient)
 {
     this._flexClient = flexClient;
 }
Esempio n. 14
0
 public CheckConnectionHealthCheckService(IConfigurationService configurationService, IFlexClient flexClient)
 {
     this._configurationService = configurationService;
     this._flexClient           = flexClient;
 }
Esempio n. 15
0
 public LoggingFlexClientDecorator(IFlexClient service, ILoggerService loggerService)
 {
     this._service       = service;
     this._loggerService = loggerService;
 }