Beispiel #1
0
 public KeypadService(IButtonService buttonService, IUserDataService userDataService,
                      IMessengerService messengerService, IGroupService groupService,
                      IOrderService orderService, IApiService apiService)
 {
     _buttonService    = buttonService;
     _userDataService  = userDataService;
     _messengerService = messengerService;
     _groupService     = groupService;
     _orderService     = orderService;
     _apiService       = apiService;
 }
 public HomeController(IMessengerService messengerService,
                       IKeypadService keypadService, IConfigService configService, IUserDataService userDataService,
                       IUserInfoService userInfoService, IButtonService buttonService, IUserInfoService categoryService,
                       IBankService bankService, IProvinceService provinceService)
 {
     _messengerService = messengerService;
     _keypadService    = keypadService;
     _configService    = configService;
     _userDataService  = userDataService;
     _userInfoService  = userInfoService;
     _buttonService    = buttonService;
     _categoryService  = categoryService;
     _bankService      = bankService;
     _provinceService  = provinceService;
 }
        public AccessPointService(
            IServiceProvider ServiceProvider,
            IMediator mediator,
            IButtonService buttonService,
            ISwitchService switchService,
            IRfidReader rfidReader,
            IRelayControlService relayControlService,
            IPirSensorService pirSensorService,
            AccessPointState state,
            ICommandReceiver commandReceiver,
            IServiceEventClient serviceEventClient)
        {
            _serviceProvider     = ServiceProvider;
            _mediator            = mediator;
            _buttonService       = buttonService;
            _switchService       = switchService;
            _rfidReader          = rfidReader;
            _relayControlService = relayControlService;
            _pirSensorService    = pirSensorService;
            _state           = state;
            _commandReceiver = commandReceiver;

            WhenButtonPressedOpened = Observable.FromEventPattern(
                handler => _buttonService.Pressed += handler,
                handler => _buttonService.Pressed -= handler);

            WhenButtonReleasedClosed = Observable.FromEventPattern(
                handler => _buttonService.Released += handler,
                handler => _buttonService.Released -= handler);

            WhenSwitchOpened = Observable.FromEventPattern(
                handler => _switchService.Opened += handler,
                handler => _switchService.Opened -= handler);

            WhenSwitchClosed = Observable.FromEventPattern(
                handler => _switchService.Closed += handler,
                handler => _switchService.Closed -= handler);

            WhenMotionDetected = Observable.FromEventPattern(
                handler => _pirSensorService.MotionDetected += handler,
                handler => _pirSensorService.MotionDetected -= handler);

            WhenMotionNotDetected = Observable.FromEventPattern(
                handler => _pirSensorService.MotionNotDetected += handler,
                handler => _pirSensorService.MotionNotDetected -= handler);
        }
Beispiel #4
0
 public HomeController(ApplicationDbContext context,
                       IMessengerService messengerService,
                       IKeypadService keypadService, IConfigService configService,
                       IUserDataService userDataService, IOrderService orderService,
                       IButtonService buttonService, IProvinceService provinceService,
                       IFestivalService festivalService, IGroupService groupService,
                       IApiService apiService)
 {
     _context          = context;
     _messengerService = messengerService;
     _keypadService    = keypadService;
     _configService    = configService;
     _userDataService  = userDataService;
     _buttonService    = buttonService;
     _provinceService  = provinceService;
     _festivalService  = festivalService;
     _groupService     = groupService;
     _orderService     = orderService;
     _apiService       = apiService;
 }
Beispiel #5
0
 public ButtonController(IButtonService buttonService)
 {
     _buttonService = buttonService;
 }
Beispiel #6
0
 public ButtonController(IButtonService <ButtonDto> userService)
 {
     _userService = userService;
 }
Beispiel #7
0
 public ButtonController(IButtonService service)
 {
     _service = service;
 }
Beispiel #8
0
 public ButtonController(IButtonService service, IHttpContextAccessor httpContext)
 {
     this._service     = service;
     this._httpContext = httpContext;
 }
 public QuestionTypeController()
 {
     questionTypeService = new QuestionTypeServer();
     buttonService       = new ButtonServer();
 }
Beispiel #10
0
 public ButtonController(IButtonService ibs)
 {
     buttonService = ibs;
 }
Beispiel #11
0
 public KeypadService(IButtonService buttonService)
 {
     _buttonService = buttonService;
 }
 public MainWindowViewModel(IButtonService btnService)
 {
     this.ButtonClickCommand =
         ReactiveCommand.CreateFromObservable <Button, Button>(btnService.ButtonClickedObservable);
 }
Beispiel #13
0
 public ButtonController()
 {
     buttonService = new ButtonServer();
 }