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)
|
if (configuration.ServiceEnabled)
|
||||||
{
|
{
|
||||||
Publisher = new TelemetryPublisherAzure(new TelemetryPublisherBuilderOptions()
|
Publisher = TelemetryPublisherAzure.CreateFromConnectionString(configuration.ConnectionString,
|
||||||
{
|
"NucuCar.Sensors", logger);
|
||||||
ConnectionString = configuration.ConnectionString,
|
|
||||||
TelemetrySource = "NucuCar.Sensors",
|
|
||||||
Logger = logger
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue