Exemplo n.º 1
0
 public MqttClient(IOptions <MqttClientOptions> options,
                   ILogger <MqttClient> logger = default)
 {
     _logger = logger ?? NullLogger <MqttClient> .Instance;
     _group  = new MultithreadEventLoopGroup();
     _packetIdentifierProvider = new MqttPacketIdProvider();
     _packetDispatcher         = new MqttPacketDispatcher();
     _options = options.Value;
 }