Exemple #1
0
 public MqttBoxStateMessageHandler(
     IMessageQueueManager messageQueueManager,
     ILogger <MqttBoxStateMessageHandler> logger,
     IKafkaProducerManager kafkaProducerManager)
     : base(logger, messageQueueManager)
 {
     _kafkaProducerManager = kafkaProducerManager;
 }
 public MqttMonitorDataMessageHandler(
     IKafkaProducerManager kafkaProducerManager,
     ILogger <MqttMonitorDataMessageHandler> logger,
     IMessageQueueManager messageQueueManager,
     KafkaSetting kafkaSetting)
     : base(logger, messageQueueManager)
 {
     _kafkaProducerManager = kafkaProducerManager;
     _kafkaSetting         = kafkaSetting;
 }
Exemple #3
0
 public FBoxMqttService(
     Func <string, MqttManagerBase> mqttManagerFunc,
     MqttSetting mqttSetting,
     BoxStateHttpClient boxStateHttpClient,
     ILogger <FBoxMqttService> logger,
     IKafkaProducerManager kafkaProducerManager,
     KafkaSetting kafkaSetting
     )
 {
     _mqttManagerFunc      = mqttManagerFunc ?? throw new ArgumentNullException(nameof(_mqttManagerFunc));
     _mqttSetting          = mqttSetting ?? throw new ArgumentNullException(nameof(_mqttSetting));
     _boxStateHttpClient   = boxStateHttpClient ?? throw new ArgumentNullException(nameof(_boxStateHttpClient));
     _logger               = logger ?? throw new ArgumentNullException(nameof(_logger));
     _kafkaProducerManager =
         kafkaProducerManager ?? throw new ArgumentNullException(nameof(_kafkaProducerManager));
     _kafkaSetting = kafkaSetting ?? throw new ArgumentNullException(nameof(kafkaSetting));
 }