diff --git a/NucuCar.Sensors/Telemetry/SensorTelemetry.cs b/NucuCar.Sensors/Telemetry/SensorTelemetry.cs index 679043e..f440cdd 100644 --- a/NucuCar.Sensors/Telemetry/SensorTelemetry.cs +++ b/NucuCar.Sensors/Telemetry/SensorTelemetry.cs @@ -11,12 +11,8 @@ namespace NucuCar.Sensors.Telemetry { if (configuration.ServiceEnabled) { - Publisher = new TelemetryPublisherAzure(new TelemetryPublisherBuilderOptions() - { - ConnectionString = configuration.ConnectionString, - TelemetrySource = "NucuCar.Sensors", - Logger = logger - }); + Publisher = TelemetryPublisherAzure.CreateFromConnectionString(configuration.ConnectionString, + "NucuCar.Sensors", logger); } else {