Beispiel #1
0
 public MqttConnectionFactory(ILoggerFactory loggerFactory, IManagedMqttClientFactory mqttFactory, IMqttConfigurationParser mqttConfigurationParser)
 {
     _mqttFactory             = mqttFactory;
     _mqttConfigurationParser = mqttConfigurationParser;
     _logger = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("Mqtt"));
 }
 public MqttConnectionFactory(ILoggerFactory loggerFactory, IManagedMqttClientFactory mqttFactory, INameResolver nameResolver)
 {
     _mqttFactory  = mqttFactory;
     _nameResolver = nameResolver;
     _logger       = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("Mqtt"));
 }
 public MqttConnection(IManagedMqttClientFactory mqttClientFactory, MqttConfiguration config, ILogger logger)
 {
     _mqttClientFactory = mqttClientFactory;
     _config            = config;
     _logger            = logger;
 }
 public MqttConnectionFactory(ILoggerFactory loggerFactory, IManagedMqttClientFactory mqttFactory, IMqttConfigurationParser mqttConfigurationParser)
 {
     _mqttFactory             = mqttFactory;
     _mqttConfigurationParser = mqttConfigurationParser;
     _logger = loggerFactory?.CreateLogger(LogCategories.CreateTriggerCategory("Mqtt")) ?? throw new ArgumentNullException(nameof(loggerFactory));
 }