GatewaySdks.MQTT builder.Services.AddSingleton<MQTTClient>() .Configure<MqttSettings>(builder.Configuration) .AddHostedService<MqttClientHost>();