Example #1
0
 public MainWindowViewModel(ICurrentVersionProvider currentVersionProvider, IMessenger messenger, IStateHandlerViewModel stateHandlerViewModel, ILanguageService languageService, IGrabberService grabberService, IStorageCleanerService storageCleanerService, IConfigurationService configurationService, IServerLogService serverLogService, ILogDumpService logDumpService)
 {
     this.StateHandlerViewModel  = stateHandlerViewModel;
     this._messenger             = messenger;
     this._languageService       = languageService;
     this._grabberService        = grabberService;
     this._storageCleanerService = storageCleanerService;
     this._configurationService  = configurationService;
     this._serverLogService      = serverLogService;
     this._logDumpService        = logDumpService;
     this.Version = currentVersionProvider.Version.ToString(3);
     messenger.Register <OnClosingProgramRequested>((object)this, new Action <OnClosingProgramRequested>(this.OnClosingProgramRequested));
     this.OnLanguageChanged((OnLanguageChanged)null);
     messenger.Register <OnLanguageChanged>((object)this, new Action <OnLanguageChanged>(this.OnLanguageChanged));
     messenger.Register <OnNewGrabSettings>((object)this, new Action <OnNewGrabSettings>(this.OnNewGrabSettings));
     messenger.Register <OnSuccessfulHealthCheck>((object)this, new Action <OnSuccessfulHealthCheck>(this.OnSuccessfulHealthCheck));
     messenger.Register <OnSuccessfulLogin>((object)this, new Action <OnSuccessfulLogin>(this.OnSuccessfulLogin));
 }
 public GrabbController(IGrabberService service)
 {
     _service = service;
 }