Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
470 stars 492 forks source link

[Technical Question] [v2] How to set Properties on TelemetryMessage #3395

Closed nikoraes closed 1 year ago

nikoraes commented 1 year ago

Hi,

I'm using v2-preview007.

The 'Properties' in the 'TelemetryMessage' class are readonly (private set). https://github.com/Azure/azure-iot-sdk-csharp/blob/previews/v2/iothub/device/src/Messaging/TelemetryMessage.cs

How can you set the event properties ? Or is this a bug in the Telemetry message class?

nikoraes commented 1 year ago

Nevermind, found it