SDK updates from main branch.
This release is bringing changes from the main release 2022-01-26.
The previous preview release was based on the main release 2021-08-11.
Microsoft.Azure.Devices.Client 1.41.0-preview-001
- Updates from
GA release2022-01-26. - Update native Azure IoT Plug and Play (PnP) APIs:
- Update the command and property callback APIs to no longer require users to pass a context object in the callback implementation.
- Command callback function is updated from
Func<CommandRequest, object, Task<CommandResponse>> callbacktoFunc<CommandRequest, Task<CommandResponse>> callback. SinceSubscribeToCommandsAsynccallback is invoked for all command invocation requests,
the user context passed in would be the same for all scenarios. This user context can be set at a class level instead. - Property callback function is updated from
Func<ClientPropertyCollection, object, Task> callbacktoFunc<ClientPropertyCollection, Task> callback. SinceSubscribeToWritablePropertyUpdateRequestsAsynccallback is invoked for all property update events, the user context passed in would be the same for all scenarios. This user context can be set at a class level instead.
- Command callback function is updated from
- .NET property private setters have been removed and the property has been made readonly instead.
- Payload getters in
CommandRequesthave been simplifiedpublic string DataAsJson { get; }has been updated topublic string GetPayloadAsString().public T GetData<T>()has been updated topublic T GetPayload<T>().public byte[] GetDataAsBytes()has been updated topublic ReadOnlyCollection<byte> GetPayloadAsBytes().
- Payload getter in
CommandResponsehas been simplifiedpublic string ResultAsJson { get; }has been updated topublic object Payload { get; }.
- Update the command and property callback APIs to no longer require users to pass a context object in the callback implementation.
Microsoft.Azure.Devices 1.38.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Shared 1.31.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Client 1.20.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Transport.Mqtt 1.18.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Transport.Amqp 1.17.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Client.Transport.Http 1.16.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Security.Tpm 1.15.0-preview-001
- Updates from
GA release2022-01-26.
Microsoft.Azure.Devices.Provisioning.Service 1.19.0-preview-001
- Updates from
GA release2022-01-26.