You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SDK v2 migration guide.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ The v2 strategy can be grouped into 3 categories.
101
101
- Review the `IsTransient` property to determine if an exception is transient.
102
102
- Review the `ErrorCode` property for specific, structured error details.
103
103
- For the service client only, the `StatusCode` property is the HTTP status response.
104
-
- The exception message is meant for human readable expanation.
104
+
- The exception message is meant for human readable explanation.
105
105
- Inner exceptions may offer more insight and are worth logging out.
106
106
-`TrackingId` is for uniquely identifying specific operations and are useful in sharing with IoT hub support to assist them in more quickly identifying errors that may have been logged by the service.
107
107
-`ProvisioningClientException` for provisioning device client and `ProvisioningServiceException` for provisioning service client for exceptions arising from communication attempts with DPS.
@@ -198,6 +198,7 @@ Find a client you currently use below, read the table of API name changes and us
198
198
|`Message.CreationTimeUtc`|`TelemetryMessage.CreatedOnUtc`, `IncomingMessage.CreatedOnUtc`| Conforming to the naming guidelines by the Azure SDK team, where DateTime/Offset types have an "On" suffix (and "Utc" suffix when explicitly in UTC).³ |
|`Message.GetBytes`|`IncomingMessage.GetPayloadAsBytes`| More descriptive name. |
201
202
|`DeviceClient.SetRetryPolicy(...)`|`IotHubClientOptions.RetryPolicy`| Should be specified at initialization time, and putting it in the client options object reduces the client API surface. |
202
203
|`ExponentialBackOff`|`IotHubClientExponentialBackOffRetryPolicy`| Clarify it is a retry policy. |
_logger.Trace($"Received direct method [{methodRequest.MethodName}] with payload [{methodRequest.GetPayloadAsJsonString()}].",TraceSeverity.Information);
459
+
_logger.Trace($"Received direct method [{methodRequest.MethodName}] with payload [{Encoding.UTF8.GetString(methodRequest.GetPayloadAsBytes())}].",TraceSeverity.Information);
_logger.Trace($"Received direct method [{methodRequest.MethodName}] with payload [{methodRequest.GetPayloadAsJsonString()}].",TraceSeverity.Information);
362
+
_logger.Trace($"Received direct method [{methodRequest.MethodName}] with payload [{Encoding.UTF8.GetString(methodRequest.GetPayloadAsBytes())}].",TraceSeverity.Information);
HelpText="The gateway edge device to connect to; if defined, this app will use the EdgeModuleConnectionString, otherwise it uses the DeviceModuleConnectionString.")]
Console.WriteLine($"Received direct method [{methodRequest.MethodName}] with payload [{methodRequest.GetPayloadAsJsonString()}].");
67
+
Console.WriteLine($"Received direct method [{methodRequest.MethodName}] with payload [{Encoding.UTF8.GetString(methodRequest.GetPayloadAsBytes())}].");
0 commit comments