public SendSensorDataOperation(SensorContext context,
                                IDeviceQueries deviceQueries,
                                IHttpContextAccessor httpContextAccessor,
                                INoAuthorization <UpdateDeviceDataDto> noAuthorization)
     : base(context, httpContextAccessor, noAuthorization)
 {
     _deviceQueries = deviceQueries;
 }
 public GetDeviceByIdOperation(SensorContext context,
                               IDeviceQueries deviceQueries,
                               IHttpContextAccessor httpContextAccessor,
                               INoAuthorization <string> noAuthorization)
     : base(context, httpContextAccessor, noAuthorization)
 {
     _deviceQueries = deviceQueries;
 }
 public GetDevicesOperation(SensorContext context,
                            IHttpContextAccessor httpContextAccessor,
                            IDeviceQueries deviceQueries,
                            IAdministratorAuthorization noAuthorization)
     : base(context, httpContextAccessor, noAuthorization)
 {
     _deviceQueries = deviceQueries;
 }
 public GetDevicesByUserOperation(SensorContext context,
                                  IHttpContextAccessor httpContextAccessor,
                                  IDeviceQueries deviceQueries,
                                  INoAuthorization <UserIdDto> authorization)
     : base(context, httpContextAccessor, authorization)
 {
     _deviceQueries = deviceQueries;
 }
Beispiel #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mediator"></param>
 /// <param name="deviceQueries"></param>
 /// <param name="identityService"></param>
 /// <param name="logger"></param>
 /// <param name="mapper"></param>
 public DeviceController(IMediator mediator, IDeviceQueries deviceQueries, IIdentityService identityService, ILogger <DeviceController> logger, IMapper mapper)
 {
     _mediator        = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _deviceQueries   = deviceQueries ?? throw new ArgumentNullException(nameof(deviceQueries));
     _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mediator"></param>
 /// <param name="deviceQueries"></param>
 /// <param name="identityService"></param>
 /// <param name="logger"></param>
 /// <param name="mapper"></param>
 /// <param name="skynetTerminalClient"></param>
 public TerminalController(IMediator mediator, IDeviceQueries deviceQueries, IIdentityService identityService, ILogger <DeviceController> logger, IMapper mapper, ISkynetTerminalClient skynetTerminalClient, ITerminalQueries terminalQueries, IMqttClient mqttClient, IOptions <DeviceSettings> options)
 {
     _mediator             = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _deviceQueries        = deviceQueries ?? throw new ArgumentNullException(nameof(deviceQueries));
     _identityService      = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _logger               = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper               = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _skynetTerminalClient = skynetTerminalClient ?? throw new ArgumentNullException(nameof(skynetTerminalClient));
     _terminalQueries      = terminalQueries ?? throw new ArgumentException(nameof(terminalQueries));
     _mqttClient           = mqttClient ?? throw new ArgumentNullException(nameof(mqttClient));
     _options              = options ?? throw new ArgumentNullException(nameof(options));
 }