public DeviceOnlineDomainEventHandler(ISkynetTerminalClient terminalClient, IDeviceIntegrationEventService deviceIntegrationEventService, IRegionRepository regionRepository, IUserRepository userRepository)
 {
     _terminalClient = terminalClient ?? throw new ArgumentNullException(nameof(terminalClient));
     _deviceIntegrationEventService = deviceIntegrationEventService ?? throw new ArgumentNullException(nameof(deviceIntegrationEventService));
     _regionRepository = regionRepository ?? throw new ArgumentNullException(nameof(regionRepository));
     _userRepository   = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
 }
Exemplo n.º 2
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));
 }