public BrowserViewModel(IFilingService fileService, IDialogService dialogService, IEventAggregator eventAggregator, IButtonsService buttonService, IAppConfig config) { _dialogService = dialogService; _fileService = fileService; _buttonService = buttonService; _eventAggregator = eventAggregator; _config = config; StartCommand = new AsyncCommand(async() => await OnStartCommandAsync()); StopCommand = new AsyncCommand(async() => await OnStopCommandAsync()); PauseCommand = new DelegateCommand(OnPauseCommand); ConnectionChangeCommand = new AsyncCommand(async() => await OnConnectionChangeCommandAsync()); ClickerChangeCommand = new DelegateCommand(OnClickerChangeCommand); UploadCommand = new AsyncCommand(async() => await OnUploadCommandAsync()); BuildCommand = new DelegateCommand(OnBuildCommand); ChangeIpCommand = new AsyncCommand(async() => await OnChangeIpCommandAsync()); _eventAggregator.GetEvent <UpdateControlsEvent>().Subscribe(OnUpdateControls); _eventAggregator.GetEvent <UpdateBrowserEvent>().Subscribe(OnUpdateBrowser); _eventAggregator.GetEvent <UpdateStatusEvent>().Subscribe(OnUpdateStatus); Initialization = InitializeProgramAsync(); }
public AudioService(IFilingService fileService, IAppConfig config) { _fileService = fileService; _config = config; _recordFileTimer = new Timer(); }
public BrowseService(IControlsService controlsService, IEventAggregator eventAggregator, IScrapService scrapService, IFilingService fileService, IConnectionService connectionService, IAudioService audioService, IAppConfig config) { _config = config; _controlsService = controlsService; _scrapService = scrapService; _fileService = fileService; _connectionService = connectionService; _audioService = audioService; _eventAggregator = eventAggregator; if (Debugger.IsAttached) //save only for DEBUG { _audioTrialsLimit = 10; _torSearchesCaptchaLimit = 10; } else { _audioTrialsLimit = 3; _torSearchesCaptchaLimit = 2; } _eventAggregator.GetEvent <UpdateControlsEvent>().Subscribe(OnUpdateControls); }
public ButtonsService(IControlsService controlService, IFilingService fileService, IBrowseService browseService) { _controlsService = controlService; _fileService = fileService; _browseService = browseService; }
public FilingServiceController() { this.filingService = ServiceLocator.Instance.GetRef <IFilingService>(); }