コード例 #1
0
 public ViewResourcesViewModel(ITestsService testsService, IMinioWorker minioWorker)
 {
     Commands      = UICommand.GenerateFromMessageButton(MessageButton.OK, new DialogService(), MessageResult.OK);
     _testsService = testsService;
     _minioWorker  = minioWorker;
     Status        = ProgramStatus.Loading;
     Task.Factory.StartNew(() => UpdateUsedFiles(testsService.SelectedState.UsedFilesLinks)).ConfigureAwait(false);
 }
コード例 #2
0
 public TestsService(ILoadingProgressController loadingProgressController, IConfigSerializer configSerializer, ILoggingService loggingService, IMinioWorker minioWorker, INotificationService notificationService)
 {
     this.loadingProgressController = loadingProgressController;
     this.configSerializer          = configSerializer;
     this.loggingService            = loggingService;
     this.minioWorker         = minioWorker;
     this.notificationService = notificationService;
     platformProvider         = ServiceLocator.Current.GetInstance <IPlatformProvider>();
 }
コード例 #3
0
 public RepositoryOptimizerViewModel(ITestsService testsService, IMinioWorker minioWorker)
 {
     _dispatcher   = Dispatcher.CurrentDispatcher;
     _minioWorker  = minioWorker;
     _testsService = testsService;
     RemovedFiles  = new ObservableCollection <RepositoryFileModel>();
     Commands      = UICommand.GenerateFromMessageButton(MessageButton.OKCancel, new DialogService(), MessageResult.OK, MessageResult.Cancel);
     Commands.Single(c => c.IsDefault).Command = new DelegateCommand(Commit);
     Status = ProgramStatus.Loading;
     Task.Factory.StartNew(() => UpdateUnusedFiles(testsService.SelectedState.UsedFilesLinks)).ConfigureAwait(false);
 }