Skip to content

Commit f7bec7d

Browse files
author
David R. Williamson
authored
Fix release build and prep for new version (#3153)
1 parent 89ae08b commit f7bec7d

File tree

13 files changed

+23
-20
lines changed

13 files changed

+23
-20
lines changed

SDK v2 migration guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,16 @@ What was a loose affiliation of separate clients is now a consolidated client wi
286286
- The `Message` class no longer requires disposal!
287287
- `FeedbackReceiver` is now a callback assigned to the `MessageFeedbackProcessor` property.
288288
- `GetFileNotificationReceiver(...)` is now a callback assigned to `FileUploadNotificationProcessor` property. These methods return a callback value.
289+
- `FileUploadNotification.BlobUriPath` was a string and is now of type `System.Uri`.
289290

290291
#### Notable additions
291292

292293
- The library now includes `IIotHubServiceRetryPolicy` implementations: `IotHubServiceExponentialBackoffRetryPolicy`, `IotHubServiceFixedDelayRetryPolicy`, `IotHubServiceIncrementalDelayRetryPolicy` and `IotHubServiceNoRetry`,
293294
which can be set via `IotHubServiceClientOptions.RetryPolicy`.
294295
- `DirectMethodClientResponse` now has a method `TryGetValue<T>` to deserialize the payload to a type of your choice.
296+
- Added `ImportJobError` class to help deserialize errors from device/module/configuration import job.
297+
- Use the `ImportErrorsBlobName` to load the output errors file, if it exists, in the blob container specified in `ImportJobProperties.InputBlobContainerUri`.
298+
- `IsFinished` convenience property now exists on `CloudToDeviceMethodScheduledJob`, `ScheduledJob`, and `TwinScheduledJob` which is **true** when `Status` is `Completed`, `Failed`, or `Cancelled`.
295299

296300
#### API mapping
297301

iothub/device/src/Microsoft.Azure.Devices.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</PropertyGroup>
2929

3030
<PropertyGroup>
31-
<Version>2.0.0-preview003</Version>
31+
<Version>2.0.0-preview004</Version>
3232
<Title>Microsoft Azure IoT Device Client SDK</Title>
3333
<IncludeSource>True</IncludeSource>
3434
<IncludeSymbols>True</IncludeSymbols>

iothub/service/samples/how to guides/CleanupDevicesSample/CleanupDevicesSample.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1919
</ItemGroup>
2020

21-
<ItemGroup>
22-
<None Update="csharp_devices_list.csv">
23-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
24-
</None>
25-
</ItemGroup>
26-
2721
<!--<ItemGroup Condition="'$(Configuration)' == 'Release'">
2822
<PackageReference Include="Microsoft.Azure.Devices" Version="2.0.0-preview001" />
2923
</ItemGroup>-->

iothub/service/src/Amqp/AmqpCbsSessionHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ namespace Microsoft.Azure.Devices.Amqp
1212
/// Handles a single CBS session (for SAS token renewal) including the inital authentication and scheduling all subsequent
1313
/// authentication attempts.
1414
/// </summary>
15+
#pragma warning disable CA1852 // used in debug for unit test mocking
1516
internal class AmqpCbsSessionHandler : IDisposable
17+
#pragma warning restore CA1852
1618
{
1719
// There is no AmqpSession object to track here because it is encapsulated by the AmqpCbsLink class.
1820
private readonly IotHubConnectionProperties _credential;

iothub/service/src/Amqp/AmqpConnectionHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ namespace Microsoft.Azure.Devices.Amqp
2121
/// <remarks>
2222
/// This class intentionally abstracts away details about sessions and links for simplicity at the service client level.
2323
/// </remarks>
24+
#pragma warning disable CA1852 // used in debug for unit test mocking
2425
internal class AmqpConnectionHandler : IDisposable
26+
#pragma warning restore CA1852
2527
{
2628
private static readonly AmqpVersion s_amqpVersion_1_0_0 = new(1, 0, 0);
2729

iothub/service/src/Amqp/AmqpSessionHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ namespace Microsoft.Azure.Devices.Amqp
1313
/// Handles a single AMQP session that holds the sender or receiver link that does the "work"
1414
/// for the AMQP connection (receiving file upload notification, sending cloud to device messages, etc).
1515
/// </summary>
16+
#pragma warning disable CA1852 // used in debug for unit test mocking
1617
internal class AmqpSessionHandler
18+
#pragma warning restore CA1852
1719
{
1820
private readonly AmqpSendingLinkHandler _sendingLinkHandler;
1921
private readonly AmqpReceivingLinkHandler _receivingLinkHandler;

iothub/service/src/Authentication/IotHubTokenCredentialProperties.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ namespace Microsoft.Azure.Devices
1212
/// <summary>
1313
/// The properties required for authentication to IoT hub using a token credential.
1414
/// </summary>
15+
#pragma warning disable CA1852 // used in debug for unit test mocking
1516
internal class IotHubTokenCredentialProperties : IotHubConnectionProperties
17+
#pragma warning restore CA1852
1618
{
1719
private const string TokenType = "Bearer";
1820
private static readonly string[] s_iotHubAadTokenScopes = new string[] { "https://iothubs.azure.net/.default" };

iothub/service/src/Microsoft.Azure.Devices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</PropertyGroup>
2828

2929
<PropertyGroup>
30-
<Version>2.0.0-preview003</Version>
30+
<Version>2.0.0-preview004</Version>
3131
<Title>Microsoft Azure IoT Service Client SDK</Title>
3232
<IncludeSource>True</IncludeSource>
3333
<IncludeSymbols>True</IncludeSymbols>

iothub/service/src/Registry/Models/ImportJobError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Azure.Devices
1212
/// Any errors that occur during a bulk import job can be deserialized with this class from a blob file named "importErrors.log"
1313
/// in the container specified during import.
1414
/// </remarks>
15-
public class ImportJobError
15+
public sealed class ImportJobError
1616
{
1717
/// <summary>
1818
/// The name of the blob file that contains the import errors.

provisioning/device/src/Microsoft.Azure.Devices.Provisioning.Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</PropertyGroup>
2727

2828
<PropertyGroup>
29-
<Version>2.0.0-preview003</Version>
29+
<Version>2.0.0-preview004</Version>
3030
<Title>Microsoft Azure IoT Provisioning Device Client SDK</Title>
3131
<IncludeSource>True</IncludeSource>
3232
<IncludeSymbols>True</IncludeSymbols>

0 commit comments

Comments
 (0)