Refactor SensorTelemetry to use builder method
This commit is contained in:
parent
4db467f221
commit
651c1d6a56
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue