コード例 #1
0
 public ApiGateway(string apiBaseAddress, IApplicationStateManager applicationStateManager, HttpClient httpClient, IJSRuntime jSRuntime)
 {
     this.apiBaseAddress          = apiBaseAddress;
     this.httpClient              = httpClient;
     this.applicationStateManager = applicationStateManager;
     this.jSRuntime = jSRuntime;
 }
コード例 #2
0
 public MainViewModel(IApplicationStateManager applicationStateManager,
                      IService <Department> departmentsService)
 {
     _applicationStateManager     = applicationStateManager;
     _departmentsService          = departmentsService;
     ViewDepartmentDetailsCommand = new DelegateCommand <Department>(OnViewDepartmentDetails);
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: AwbStateManager.cs プロジェクト: UHgEHEP/test
 public AwbStateManager(
     IAwbRepository awbs,
     IApplicationRepository applications,
     IApplicationStateManager states)
 {
     _awbs         = awbs;
     _applications = applications;
     _states       = states;
 }
コード例 #5
0
ファイル: AwbStateManager.cs プロジェクト: UHgEHEP/test
		public AwbStateManager(
			IAwbRepository awbs,
			IApplicationRepository applications,
			IApplicationStateManager states)
		{
			_awbs = awbs;
			_applications = applications;
			_states = states;
		}
コード例 #6
0
 public ApplicationUpdateController(
     IApplicationStateManager states,
     IApplicationPresenter presenter,
     IAdminApplicationManager manager,
     IStateConfig config)
 {
     _states    = states;
     _presenter = presenter;
     _manager   = manager;
     _config    = config;
 }
コード例 #7
0
		public ApplicationUpdateController(
			IApplicationStateManager states,
			IApplicationPresenter presenter,
			IAdminApplicationManager manager,
			IStateConfig config)
		{
			_states = states;
			_presenter = presenter;
			_manager = manager;
			_config = config;
		}
コード例 #8
0
ファイル: ApplicationAwbManager.cs プロジェクト: UHgEHEP/test
		public ApplicationAwbManager(
			IAwbRepository awbs,
			IStateConfig config,
			IEventFacade events,
			IApplicationEditor editor,
			IApplicationStateManager states)
		{
			_awbs = awbs;
			_config = config;
			_events = events;
			_editor = editor;
			_states = states;
		}
コード例 #9
0
 public ApplicationAwbManager(
     IAwbRepository awbs,
     IStateConfig config,
     IEventFacade events,
     IApplicationEditor editor,
     IApplicationStateManager states)
 {
     _awbs   = awbs;
     _config = config;
     _events = events;
     _editor = editor;
     _states = states;
 }
コード例 #10
0
 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);
 }
コード例 #11
0
 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);
 }
コード例 #12
0
		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;
		}
コード例 #13
0
 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;
 }
コード例 #14
0
        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;
        }
コード例 #15
0
        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;
        }
コード例 #16
0
 /// <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;
 }
コード例 #17
0
ファイル: ApplicationBootstrapper.cs プロジェクト: tomyqg/ULA
 /// <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)
 {
 }