public ApiGateway(string apiBaseAddress, IApplicationStateManager applicationStateManager, HttpClient httpClient, IJSRuntime jSRuntime) { this.apiBaseAddress = apiBaseAddress; this.httpClient = httpClient; this.applicationStateManager = applicationStateManager; this.jSRuntime = jSRuntime; }
public MainViewModel(IApplicationStateManager applicationStateManager, IService <Department> departmentsService) { _applicationStateManager = applicationStateManager; _departmentsService = departmentsService; ViewDepartmentDetailsCommand = new DelegateCommand <Department>(OnViewDepartmentDetails); }
/// <summary> /// Creates an instance of <see cref="RootViewModel" /> /// </summary> /// <param name="modeFactory"> /// An instance of <see cref="IApplicationModeViewModelFactory" /> to use /// </param> /// <param name="interactionService"> /// An instance of <see cref="IInteractionService" /> to use /// </param> /// <param name="stateManager"> /// An instance of <see cref="IApplicationStateManager" /> to use /// </param> /// <param name="soundNotificationsService"></param> public RootViewModel(IApplicationModeViewModelFactory modeFactory, IInteractionService interactionService, IApplicationStateManager stateManager, ISoundNotificationsService soundNotificationsService) { this._modeFactory = modeFactory; this._interactionService = interactionService; this._stateManager = stateManager; _soundNotificationsService = soundNotificationsService; }
public AwbStateManager( IAwbRepository awbs, IApplicationRepository applications, IApplicationStateManager states) { _awbs = awbs; _applications = applications; _states = states; }
public ApplicationUpdateController( IApplicationStateManager states, IApplicationPresenter presenter, IAdminApplicationManager manager, IStateConfig config) { _states = states; _presenter = presenter; _manager = manager; _config = config; }
public ApplicationAwbManager( IAwbRepository awbs, IStateConfig config, IEventFacade events, IApplicationEditor editor, IApplicationStateManager states) { _awbs = awbs; _config = config; _events = events; _editor = editor; _states = states; }
public EditEmployeeViewModel(IApplicationStateManager applicationStateManager, IService <Employee> employeesService, AbstractValidator <Employee> employeeValidator) { _applicationStateManager = applicationStateManager; _employeesService = employeesService; _employeeValidator = employeeValidator; PositionsNames = typeof(Positions).GetEnumNames(); SaveCommand = new DelegateCommand(OnSave, CanSave); SaveCommand.ObservesProperty(() => Name); SaveCommand.ObservesProperty(() => SelectedPosition); CancelCommand = new DelegateCommand(OnCancel); }
public DepartmentDetailsViewModel(IApplicationStateManager applicationStateManager, IService <Department> departmentsService, IService <Employee> employeesService) { _applicationStateManager = applicationStateManager; _departmentsService = departmentsService; _employeesService = employeesService; _employees = new ObservableCollection <Employee>(); ViewDepartmentDetailsCommand = new DelegateCommand <Department>(OnViewDepartmentDetails); GoBackCommand = new DelegateCommand(OnGoBack); AddEmloyeeCommand = new DelegateCommand(OnAddEmployee); EditEmployeeCommand = new DelegateCommand <int?>(OnEditEmployee); DeleteEmployeeCommand = new DelegateCommand <int?>(OnDeleteEmployee); }
public AdminApplicationManager( IApplicationRepository applications, IApplicationStateManager states, IForwarderService forwarders, IApplicationEditor editor, IStateConfig config, ITransitService transitService) { _applications = applications; _states = states; _forwarders = forwarders; _editor = editor; _config = config; _transitService = transitService; }
public UserService( IApiGateway apiGateway, IApplicationStateManager applicationStateManager, ChannelsHubSignalRClient channelsHubSignalRClient, SuspensionsHubSignalRClient suspensionsHubSignalRClient, NotificationHubSignalRClient notificationHubSignalRClient, IJSRuntime jSRuntime) { this.apiGateway = apiGateway; this.applicationStateManager = applicationStateManager; this.channelsHubSignalRClient = channelsHubSignalRClient; this.suspensionsHubSignalRClient = suspensionsHubSignalRClient; this.notificationHubSignalRClient = notificationHubSignalRClient; this.jSRuntime = jSRuntime; notificationHubSignalRClient.NotificationReceived += NotificationHubSignalRClient_NotificationReceived; }
private void InitializeDependencies() { this.DependencyInitializationStart = DateTime.Now; this.applicationStateManager = DependencyService.Get <IApplicationStateManager>(); // Get the bluetooth LE instance for peripherals discovery. this.bluetoothDriver = DependencyService.Get <IBluetoothDriver>(); this.bluetoothDriver.Start(); // Get the storage istance for app settings. this.settingsStorage = DependencyService.Get <ISettingsStorage>(); // Get the motion sensors. this.sensors = DependencyService.Get <SensorsBase>(); this.sensors.Initialize(SensorTypes.Accelerometer | SensorTypes.Gyroscope); this.sensors.Start(); this.DependencyInitializationEnd = DateTime.Now; }
/// <summary> /// Initializes an instance of <see cref="Bootstrapper" /> /// </summary> /// <param name="currentApplicationStateManager"> /// An instance of <see cref="IApplicationStateManager" /> that represents application management functionality /// </param> protected Bootstrapper(IApplicationStateManager currentApplicationStateManager) { this._currentApplicationStateManager = currentApplicationStateManager; }
/// <summary> /// Creates an instance of <see cref="ApplicationBootstrapper" /> /// </summary> /// <param name="currentApplicationStateManager"> /// An instance of <see cref="IApplicationStateManager" /> that represents application management functionality /// </param> public ApplicationBootstrapper(IApplicationStateManager currentApplicationStateManager) : base(currentApplicationStateManager) { }