public ApplicationModule(IApplicationService applicationService, IErrorService error) : base("/application") { Post["/register"] = _ => { if (Params.AreMissing("SingleUseToken", "Name")) return error.MissingParameters(Response); if (!Params.SingleUseToken.IsGuid()) return error.InvalidParameters(Response); if (!applicationService.AuthoriseSingleUseToken(Params.SingleUseToken)) return error.PermissionDenied(Response); var application = applicationService.Register(Params.Name); return (application == null) ? error.InvalidParameters(Response) : Response.AsJson(new { ApplicationId = application.Id }); }; Post["/transfer"] = _ => { if (Params.AreMissing("SingleUseToken", "Name", "Id")) return error.MissingParameters(Response); if (!Params.Id.IsGuid() || !Params.SingleUseToken.IsGuid()) return error.InvalidParameters(Response); if (!applicationService.AuthoriseSingleUseToken(Params.SingleUseToken)) return error.PermissionDenied(Response); var application = applicationService.Transfer(Params.Name, Params.Id); return (application == null) ? error.InvalidParameters(Response) : Response.AsJson(new { ApplicationId = application.Id }); }; }
/// <summary> /// Initializes a new instance of the <see cref="AdministrationCodeTableService"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="errorService">The error service.</param> public AdministrationCodeTableService(AdministrationCodeTableDomainContext context, IErrorService errorService) { _codeTableDomainContext = context; _errorService = errorService; _groups=new BindableCollection<Group>(); _userProfessions=new BindableCollection<UserProfession>(); }
public MainViewModel(IDialogService dialogService, IErrorService errorService) { _dialogService = dialogService; _errorService = errorService; OpenFileCommand = new RelayCommand(OpenFile); _showScoreInfoCommand = new RelayCommand(ShowScoreInfo, () => _score != null); }
public PetitionController(IEmailService emailService, ICeremonyService ceremonyService, IPetitionService petitionService, IErrorService errorService) { _emailService = emailService; _ceremonyService = ceremonyService; _petitionService = petitionService; _errorService = errorService; }
/// <summary> /// Initializes a new instance of the <see cref="QueueSelectionViewModel"/> class. /// </summary> /// <param name="errorService"> /// The Error Service /// </param> public QueueSelectionViewModel(IErrorService errorService) { this.errorService = errorService; this.Title = "Add to Queue"; this.TitleList = new BindingList<SelectionTitle>(); this.OrderedByTitle = true; }
/// <summary> /// Initializes a new instance of the <see cref="ShellViewModel"/> class. /// </summary> /// <param name="errorService"> /// The error Service. /// </param> public ShellViewModel(IErrorService errorService) { this.errorService = errorService; this.showMainWindow = true; this.showOptions = false; this.IsMainPanelEnabled = true; }
/// <summary> /// Initializes a new instance of the <see cref="ManagePresetViewModel"/> class. /// </summary> /// <param name="presetService"> /// The Preset Service /// </param> /// <param name="errorService"> /// The Error Service /// </param> /// <param name="windowManager"> /// The window Manager. /// </param> public ManagePresetViewModel(IPresetService presetService, IErrorService errorService, IWindowManager windowManager) { this.presetService = presetService; this.errorService = errorService; this.windowManager = windowManager; this.Title = "Manage Preset"; this.Preset = new Preset { IsBuildIn = false, IsDefault = false, Category = PresetService.UserPresetCatgoryName}; }
/// <summary> /// Initializes a new instance of the <see cref="QueueSelectionViewModel"/> class. /// </summary> /// <param name="errorService"> /// The Error Service /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> public QueueSelectionViewModel(IErrorService errorService, IUserSettingService userSettingService) { this.errorService = errorService; this.userSettingService = userSettingService; this.Title = Resources.QueueSelectionViewModel_AddToQueue; this.TitleList = new BindingList<SelectionTitle>(); this.OrderedByTitle = true; }
/// <summary> /// Initializes a new instance of the <see cref="AddPresetViewModel"/> class. /// </summary> /// <param name="windowManager"> /// The window manager. /// </param> /// <param name="presetService"> /// The Preset Service /// </param> /// <param name="errorService"> /// The Error Service /// </param> public AddPresetViewModel(IWindowManager windowManager, IPresetService presetService, IErrorService errorService) { this.presetService = presetService; this.errorService = errorService; this.Title = "Add Preset"; this.Preset = new Preset { IsBuildIn = false, IsDefault = false, Category = PresetService.UserPresetCatgoryName, UsePictureFilters = true}; this.PictureSettingsModes = EnumHelper<PresetPictureSettingsMode>.GetEnumList(); }
/// <summary> /// Initializes a new instance of the <see cref="QueueViewModel"/> class. /// </summary> /// <param name="windowManager"> /// The window manager. /// </param> /// <param name="queueProcessor"> /// The Queue Processor Service /// </param> /// <param name="errorService"> /// The Error Service /// </param> public QueueViewModel(IWindowManager windowManager, IQueueProcessor queueProcessor, IErrorService errorService) { this.queueProcessor = queueProcessor; this.errorService = errorService; this.Title = "Queue"; this.JobsPending = "No encodes pending"; this.JobStatus = "There are no jobs currently encoding"; }
/// <summary> /// Initializes a new instance of the <see cref="QueueProcessor"/> class. /// </summary> /// <param name="encodeService"> /// The encode Service. /// </param> /// <param name="userSettingService"> /// The user settings service. /// </param> /// <param name="errorService"> /// The Error Service. /// </param> /// <exception cref="ArgumentNullException"> /// Services are not setup /// </exception> public QueueProcessor(IEncode encodeService, IUserSettingService userSettingService, IErrorService errorService) { this.userSettingService = userSettingService; this.errorService = errorService; this.EncodeService = encodeService; // If this is the first instance, just use the main queue file, otherwise add the instance id to the filename. this.queueFile = string.Format("hb_queue_recovery{0}.xml", GeneralUtilities.ProcessId); }
/// <summary> /// Initializes a new instance of the <see cref="QueueViewModel"/> class. /// </summary> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="queueProcessor"> /// The Queue Processor Service /// </param> /// <param name="errorService"> /// The Error Service /// </param> public QueueViewModel(IUserSettingService userSettingService, IQueueProcessor queueProcessor, IErrorService errorService) { this.userSettingService = userSettingService; this.queueProcessor = queueProcessor; this.errorService = errorService; this.Title = "Queue"; this.JobsPending = "No encodes pending"; this.JobStatus = "There are no jobs currently encoding"; }
/// <summary> /// Initializes a new instance of the <see cref="ShellViewModel"/> class. /// </summary> /// <param name="errorService"> /// The error Service. /// </param> /// <param name="mainViewModel"> /// The main View Model. /// </param> /// <param name="optionsViewModel"> /// The options View Model. /// </param> public ShellViewModel(IErrorService errorService, IMainViewModel mainViewModel, IOptionsViewModel optionsViewModel) { this.errorService = errorService; this.showMainWindow = true; this.showOptions = false; this.IsMainPanelEnabled = true; this.MainViewModel = mainViewModel; this.OptionsViewModel = optionsViewModel; }
public ErrorListViewModel(IErrorService errorService) { ThrowUtil.ThrowIfNull(errorService); _errorService = errorService; AllErrors = new ObservableCollection<ErrorListItemVM>(); ImportExisting(); _errorService.ErrorAdded += (s, e) => SyncInvoke(() => AddError(e.Value)); _errorService.ErrorRemoved += (s, e) => SyncInvoke(() => RemoveError(e.Value)); }
/// <summary> /// Initializes a new instance of the <see cref="QueueViewModel"/> class. /// </summary> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="queueProcessor"> /// The Queue Processor Service /// </param> /// <param name="errorService"> /// The Error Service /// </param> public QueueViewModel(IUserSettingService userSettingService, IQueueProcessor queueProcessor, IErrorService errorService) { this.userSettingService = userSettingService; this.queueProcessor = queueProcessor; this.errorService = errorService; this.Title = Resources.QueueViewModel_Queue; this.JobsPending = Resources.QueueViewModel_NoEncodesPending; this.JobStatus = Resources.QueueViewModel_NoJobsPending; this.SelectedItems = new BindingList<QueueTask>(); this.DisplayName = "Queue"; this.WhenDoneAction = this.userSettingService.GetUserSetting<string>(UserSettingConstants.WhenCompleteAction); }
public ErrorController(ElmahErrorHelper elmahErrorHelper, IErrorService errorService) { if (elmahErrorHelper == null) { throw new ArgumentNullException("elmahErrorHelper"); } if (errorService == null) { throw new ArgumentNullException("errorService"); } _errorService = errorService; _elmahErrorHelper = elmahErrorHelper; }
public RootModule(IErrorService error) { Get["/"] = _ => { return "ThumbsUp Security Service is Running"; }; Get["/error/{code}"] = url => { if (Params.AreMissing("Code")) return error.MissingParameters(Response); return Response.AsJson(new { ErrorCode = Params.Code, ErrorMessage = error.Decode(Params.Code)}); }; }
/// <summary> /// Initializes a new instance of the <see cref="PreviewViewModel"/> class. /// </summary> /// <param name="encodeService"> /// The encode Service. /// </param> /// <param name="errorService"> /// The error Service. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> public PreviewViewModel(IEncodeServiceWrapper encodeService, IErrorService errorService, IUserSettingService userSettingService) { this.encodeService = encodeService; this.errorService = errorService; this.userSettingService = userSettingService; this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.StartAt = 1; this.Duration = 30; UseSystemDefaultPlayer = userSettingService.GetUserSetting<bool>(UserSettingConstants.DefaultPlayer); }
public AdminController(IRepositoryWithTypedId<Student, Guid> studentRepository, IRepositoryWithTypedId<MajorCode, string> majorRepository, IStudentService studentService, IEmailService emailService, IMajorService majorService, ICeremonyService ceremonyService, IRegistrationService registrationService, IRegistrationPopulator registrationPopulator, IRepository<Registration> registrationRepository, IErrorService errorService, IReportService reportService) { if (emailService == null) throw new ArgumentNullException("emailService"); _studentRepository = studentRepository; _majorRepository = majorRepository; _studentService = studentService; _emailService = emailService; _majorService = majorService; _ceremonyService = ceremonyService; _registrationService = registrationService; _registrationPopulator = registrationPopulator; _registrationRepository = registrationRepository; _errorService = errorService; _reportService = reportService; }
/// <summary> /// Initializes a new instance of the <see cref="IsolatedEncodeService"/> class. /// </summary> /// <param name="errorService"> /// The error Service. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> public IsolatedEncodeService(IErrorService errorService, IUserSettingService userSettingService) : base(errorService, userSettingService) { try { if (this.CanConnect()) { this.Connect(); } } catch (Exception exception) { errorService.ShowError( "Unable to connect to scan worker process.", "Try restarting HandBrake", exception); } }
/// <summary> /// Initializes a new instance of the <see cref="ShellViewModel"/> class. /// </summary> /// <param name="errorService"> /// The error Service. /// </param> public ShellViewModel(IErrorService errorService) { this.errorService = errorService; if (!AppArguments.IsInstantHandBrake) { this.showMainWindow = true; this.showOptions = false; this.showInstant = false; } else { this.showMainWindow = false; this.showOptions = false; this.showInstant = true; } }
/// <summary> /// Initializes a new instance of the <see cref="PreviewViewModel"/> class. /// </summary> /// <param name="errorService"> /// The error Service. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> public PreviewViewModel(IErrorService errorService, IUserSettingService userSettingService) { // Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point this.encodeService = new EncodeServiceWrapper(userSettingService); this.errorService = errorService; this.userSettingService = userSettingService; this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.StartAt = 1; this.Duration = 30; this.CanPlay = true; UseSystemDefaultPlayer = userSettingService.GetUserSetting<bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting<int>(UserSettingConstants.LastPreviewDuration); }
public MainViewModel(IDialogService dialogService, IErrorService errorService, SongCollection songCollection) { _dialogService = dialogService; _errorService = errorService; this.songCollection = songCollection; songLoader = new SongLoader(_dialogService, songCollection); // Re-raise events for the view songCollection.PropertyChanged += (sender, args) => this.RaisePropertyChanged(args.PropertyName); songLoader.PropertyChanged += (sender, args) => this.RaisePropertyChanged(args.PropertyName); songLoader.PropertyChanged += OnIsLoadingToggled; OpenFileCommand = new RelayCommand(songLoader.OpenFile); LoadDiskTracksCommand = new RelayCommand(songLoader.LoadDiskTracks); LoadDLCTracksCommand = new RelayCommand(songLoader.LoadDLCTracks); SelectedGuitarPath = RockSmithTabExplorer.Properties.Settings.Default.GuitarPath; if (ViewModelBase.IsInDesignModeStatic) TrackToolBarVisible = true; }
/// <summary> /// Simple way of checking if a directory is writeable. /// </summary> /// <param name="dirPath">Path to check</param> /// <param name="createDirectoryPrompt"> /// Prompt to create directory if it doesn't exist. /// </param> /// <param name="errorService"> /// An instance of the error service to allow prompting. /// </param> /// <returns>True if writable</returns> public static bool IsWritable(string dirPath, bool createDirectoryPrompt, IErrorService errorService) { try { if (!Directory.Exists(dirPath)) { MessageBoxResult result = errorService.ShowMessageBox(string.Format(Resources.DirectoryUtils_CreateFolderMsg, dirPath), Resources.DirectoryUtils_CreateFolder, MessageBoxButton.YesNo, MessageBoxImage.Question); if (MessageBoxResult.Yes == result) { Directory.CreateDirectory(dirPath); } } using (File.Create(Path.Combine(dirPath, Path.GetRandomFileName()), 1, FileOptions.DeleteOnClose)) { } return true; } catch { return false; } }
public StudentController(IStudentService studentService, IEmailService emailService, IRepositoryWithTypedId<Student, Guid> studentRepository, IRepository<Ceremony> ceremonyRepository, IRepository<Registration> registrationRepository, IErrorService errorService, ICeremonyService ceremonyService, IReportService reportService, IRepository<RegistrationPetition> registrationPetitionRepository, IRepository<RegistrationParticipation> participationRepository, IRegistrationPopulator registrationPopulator) { _studentRepository = studentRepository; _ceremonyRepository = ceremonyRepository; _registrationRepository = registrationRepository; _errorService = errorService; _ceremonyService = ceremonyService; _reportService = reportService; _registrationPetitionRepository = registrationPetitionRepository; _participationRepository = participationRepository; _registrationPopulator = registrationPopulator; _studentService = studentService; _emailService = emailService; }
/// <summary> /// Initializes a new instance of the <see cref="StaticPreviewViewModel"/> class. /// </summary> /// <param name="scanService"> /// The scan service. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="errorService"> /// The error Service. /// </param> public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.encodeService = new LibEncode(); // Preview needs a separate instance rather than the shared singleton. This could maybe do with being refactored at some point this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; UseSystemDefaultPlayer = userSettingService.GetUserSetting <bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting <int>(UserSettingConstants.LastPreviewDuration); }
/// <summary> /// Initializes a new instance of the <see cref="PresetService"/> class. /// </summary> /// <param name="errorService"> /// The error service. /// </param> public PresetService(IErrorService errorService) { this.errorService = errorService; }
public SizeController(IErrorService errorService, ISizeService SizeService) : base(errorService) { this._SizeService = SizeService; }
/// <summary> /// Initializes a new instance of the <see cref="StaticPreviewViewModel"/> class. /// </summary> /// <param name="scanService"> /// The scan service. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="errorService"> /// The error Service. /// </param> public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.encodeService = new LibEncode(); // Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; UseSystemDefaultPlayer = userSettingService.GetUserSetting<bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting<int>(UserSettingConstants.LastPreviewDuration); }
public PostCategoryController(IErrorService errorService, IPostCategoryService postCategoryService) : base(errorService) { this._postCategoryService = postCategoryService; }
public ThuongHieuController(IErrorService errorService, IThuongHieuService thuongHieuService) : base(errorService) { this._thuongHieuService = thuongHieuService; }
private void Init(IErrorService errorService, ICacheService cacheService, IMessageService messageService) { ErrorService = errorService; MessageService = messageService; CacheService = cacheService; }
public ParentProductCategoryController(IParentProductCategoryService parentProductCategoryService, IErrorService errorService) : base(errorService) { this._parentProductCategoryService = parentProductCategoryService; }
/// <summary> /// Initializes a new instance of the <see cref="OptionsViewModel"/> class. /// </summary> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="updateService"> /// The update Service. /// </param> /// <param name="aboutViewModel"> /// The about View Model. /// </param> /// <param name="errorService"> /// The error Service. /// </param> public OptionsViewModel(IUserSettingService userSettingService, IUpdateService updateService, IAboutViewModel aboutViewModel, IErrorService errorService) { this.Title = "Options"; this.userSettingService = userSettingService; this.updateService = updateService; this.errorService = errorService; this.AboutViewModel = aboutViewModel; this.OnLoad(); this.SelectedTab = OptionsTab.General; this.UpdateMessage = "Click 'Check for Updates' to check for new versions"; }
/// <summary> /// Initializes a new instance of the <see cref="ChaptersViewModel"/> class. /// </summary> /// <param name="windowManager"> /// The window manager. /// </param> /// <param name="userSettingService"> /// The user Setting Service. /// </param> /// <param name="errorService"> /// The Error Service /// </param> public ChaptersViewModel(IWindowManager windowManager, IUserSettingService userSettingService, IErrorService errorService) { this.Task = new EncodeTask(); this.errorService = errorService; }
public ErrorsController(IErrorService errorService) { Check.Require(errorService != null, "errorService may not be null"); this.errorService = errorService; }
public ProductCategoryController(IErrorService errorService, IProductCategoryService productCategoryService) : base(errorService) { this._productCategoryService = productCategoryService; }
public ApplicationRoleController(IErrorService errorService, IApplicationRoleService appRoleService) : base(errorService) { _appRoleService = appRoleService; }
public PhieuHenKhamController(IErrorService errorService, IPhieuHenKhamService phieuHenKhamService, INguoiDungService nguoiDungService) : base(errorService) { _phieuHenKhamService = phieuHenKhamService; _nguoiDungService = nguoiDungService; }
public FocusController(IErrorService errorService, IFocusRepository focusRepository, IUnitOfWork unitOfWork) : base(errorService) { this._focusRepository = focusRepository; this._unitOfWork = unitOfWork; }
public QueueViewModel(IUserSettingService userSettingService, IQueueService queueProcessor, IErrorService errorService) { this.userSettingService = userSettingService; this.queueProcessor = queueProcessor; this.errorService = errorService; this.Title = Resources.QueueViewModel_Queue; this.JobsPending = Resources.QueueViewModel_NoEncodesPending; this.SelectedItems = new BindingList <QueueTask>(); this.SelectedItems.ListChanged += this.SelectedItems_ListChanged; this.DisplayName = "Queue"; this.IsQueueRunning = false; this.SelectedTabIndex = 0; this.WhenDoneAction = (WhenDone)this.userSettingService.GetUserSetting <int>(UserSettingConstants.WhenCompleteAction); }
public StaticPreviewViewModel(IScan scanService, IUserSettingService userSettingService, IErrorService errorService, IHbFunctionsProvider hbFunctionsProvider, ILog logService, ILogInstanceManager logInstanceManager, IPortService portService) { this.scanService = scanService; this.selectedPreviewImage = 1; this.Title = Resources.Preview; this.PreviewNotAvailable = true; // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; this.encodeService = new LibEncode(hbFunctionsProvider, userSettingService, logInstanceManager, 0, portService); // Preview needs a separate instance rather than the shared singleton. This could maybe do with being refactored at some point this.Title = "Preview"; this.Percentage = "0.00%"; this.PercentageValue = 0; this.Duration = 30; this.CanPlay = true; this.useSystemDefaultPlayer = userSettingService.GetUserSetting <bool>(UserSettingConstants.DefaultPlayer); this.Duration = userSettingService.GetUserSetting <int>(UserSettingConstants.LastPreviewDuration); this.previewRotateFlip = userSettingService.GetUserSetting <bool>(UserSettingConstants.PreviewRotationFlip); this.NotifyOfPropertyChange(() => this.previewRotateFlip); // Don't want to trigger an Update, so setting the backing variable. }
public ProductImageController(IProductImageService productImageService, IErrorService errorService, ILogService logService) : base(errorService) { _productImageService = productImageService; _logService = logService; }
/// <summary> /// Initializes a new instance of the <see cref="PresetService"/> class. /// </summary> /// <param name="errorService"> /// The error service. /// </param> /// <param name="userSettingService"> /// The User setting service. /// </param> public PresetService(IErrorService errorService, IUserSettingService userSettingService) { this.errorService = errorService; this.userSettingService = userSettingService; }
public WarehouseController(IErrorService errorService, IWarehouseService warehouseService) : base(errorService) { this._warehouseService = warehouseService; }
public LoaiSanPhamController(IErrorService errorService, ILoaiSanPhamService loaiSanPhamService) : base(errorService) { _loaiSanPhamService = loaiSanPhamService; }
public BlogPostTypesController(IErrorService errorService, IBlogPostTypeProvider blogPostTypeProvider) : base(errorService) { _blogPostTypeProvider = blogPostTypeProvider; }
public RegisterConnection(ILogService logService, IErrorService errorService) { this.logService = logService; this.errorService = errorService; connectionList = new List <IConnection>(); }
public CustomerController(IErrorService errorService, ICustomerService customerService) : base(errorService) { this._customerService = customerService; }
public MaterialController(IErrorService errorService, IMaterialServie materialService, IHistoryService historyService) : base(errorService, historyService) { this.materialService = materialService; }
/// <summary> /// Initializes a new instance of the <see cref="MainViewModel"/> class. /// The viewmodel for HandBrakes main window. /// </summary> /// <param name="userSettingService"> /// The User Setting Service /// </param> /// <param name="scanService"> /// The scan Service. /// </param> /// <param name="encodeService"> /// The encode Service. /// </param> /// <param name="presetService"> /// The preset Service. /// </param> /// <param name="errorService"> /// The Error Service /// </param> /// <param name="shellViewModel"> /// The shell View Model. /// </param> /// <param name="updateService"> /// The update Service. /// </param> /// <param name="notificationService"> /// The notification Service. /// *** Leave in Constructor. *** /// </param> /// <param name="whenDoneService"> /// The when Done Service. /// *** Leave in Constructor. *** /// </param> public MainViewModel(IUserSettingService userSettingService, IScanServiceWrapper scanService, IEncodeServiceWrapper encodeService, IPresetService presetService, IErrorService errorService, IShellViewModel shellViewModel, IUpdateService updateService, INotificationService notificationService, IPrePostActionService whenDoneService) { this.scanService = scanService; this.encodeService = encodeService; this.presetService = presetService; this.errorService = errorService; this.shellViewModel = shellViewModel; this.updateService = updateService; this.userSettingService = userSettingService; this.queueProcessor = IoC.Get<IQueueProcessor>(); // Setup Properties this.WindowTitle = "HandBrake"; this.CurrentTask = new EncodeTask(); this.CurrentTask.PropertyChanged += this.CurrentTask_PropertyChanged; this.ScannedSource = new Source(); // Setup Events this.scanService.ScanStared += this.ScanStared; this.scanService.ScanCompleted += this.ScanCompleted; this.scanService.ScanStatusChanged += this.ScanStatusChanged; this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted; this.queueProcessor.QueueCompleted += this.QueueCompleted; this.queueProcessor.QueueChanged += this.QueueChanged; this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged; this.userSettingService.SettingChanged += this.UserSettingServiceSettingChanged; this.Presets = this.presetService.Presets; this.CancelScanCommand = new CancelScanCommand(this.scanService); }
public CourseCategoryController(IErrorService errorService, ICourseCategoryService courseCategoryService) : base(errorService) { this._courseCategoryService = courseCategoryService; }
public NewController(IErrorService errorService, INewService newService) : base(errorService) { this._newService = newService; }
public FunctionController(IErrorService errorService, IFunctionService functionService) : base(errorService) { this._functionService = functionService; }
public AppUserController(IErrorService errorService) : base(errorService) { }
public AnnouncementController(IErrorService errorService, IAnnouncementService announcementService) : base(errorService) { _announcementService = announcementService; }
public ApiControllerBase(IErrorService errorService) { this._errorService = errorService; }
public WordsCardsController(IJWTService jwtService, IApiHelper apiHealper, ILogger <WordsCardsController> logger, IWordsCardsService wordsCardsService, IErrorService errorService) { _apiHealper = apiHealper; _jwtService = jwtService; _logger = logger; _wordsCardsService = wordsCardsService; _errorService = errorService; _wordCardReturnFactory = new WordCardReturnFactory(); _boolResultFactory = new BoolResultFactory(); }
public MainViewModel(IWindowManager windowManager, IUserSettingService userSettingService, IScan scanService, IEncode encodeService, IPresetService presetService, IErrorService errorService, IShellViewModel shellViewModel, IUpdateService updateService) { this.scanService = scanService; this.encodeService = encodeService; this.presetService = presetService; this.errorService = errorService; this.shellViewModel = shellViewModel; this.updateService = updateService; this.userSettingService = userSettingService; this.queueProcessor = IoC.Get<IQueueProcessor>(); // TODO Instance ID! // Setup Properties this.WindowTitle = "HandBrake"; this.CurrentTask = new EncodeTask(); this.ScannedSource = new Source(); // Setup Events this.scanService.ScanStared += this.ScanStared; this.scanService.ScanCompleted += this.ScanCompleted; this.scanService.ScanStatusChanged += this.ScanStatusChanged; this.queueProcessor.JobProcessingStarted += this.QueueProcessorJobProcessingStarted; this.queueProcessor.QueueCompleted += this.QueueCompleted; this.queueProcessor.EncodeService.EncodeStatusChanged += this.EncodeStatusChanged; this.Presets = this.presetService.Presets; }
public AppRoleController(IErrorService errorService, IFunctionService functionService, IPermissionService permissionService) : base(errorService) { _functionService = functionService; _permissionService = permissionService; }