This is the second preview of the v2 clients. You can read about the changes in this migration guide.
General notes
- Reduced the library count by 1.
- Microsoft.Azure.Devices.Authentication has been removed and the relevant classes moved into Microsoft.Azure.Devices.Provisioning.
- Renamed more methods and properties (see migration guide for details).
- More unit test mocking improvements.
Specific changes
- replaced custom methods with string methods by @patilsnr in #2801
- Flaky test fix and wait on some fault injection durations by @drwill-ms in #2798
- combine getting started folders by @patilsnr in #2803
- added projects to main sln file by @patilsnr in #2807
- Update the reconnection sample to use the retry policy fully, rather than wrap another retry policy around method calls by @drwill-ms in #2827
- Update symmetric key sample by @schoims in #2839
- Change how we clean-up devices and enrollments by @drwill-ms in #2843
- Print any errors from the devices cleanup job by @drwill-ms in #2850
- Update DPS custom allocator code by @drwill-ms in #2862
- Update api diff script by @drwill-ms in #2869
- Update E2E test version references by @drwill-ms in #2870
- Build and upload only Device SDK nuget packages by @andyk-ms in #2872
- Fix namespaces by @abhipsaMisra in #2871
- Rename ProvisioningRegistrationAdditionalData to RegistrationRequestPayload by @timtay-microsoft in #2868
- Small migration guide clean-up by @drwill-ms in #2873
- Remove some unnecessary exception constructors by @timtay-microsoft in #2867
- Collapse x509 auth provider classes by @drwill-ms in #2876
- Update the release version in badges and remove build badges by @schoims in #2878
- Use the Azure.Core ETag type in the DPS service client by @timtay-microsoft in #2864
- Remove build status and NuGet packages by @schoims in #2883
- Update migration guide API differences in DeviceClient/ModuleClient by @ngastelum-ms in #2882
- Add link to v2 migration document in readme for main branch by @brycewang-microsoft in #2880
- Add link to v2 migration document and Auth nuget to Contents in README for v2 branch by @brycewang-microsoft in #2879
- Consistent naming for DateTime properties and methods by @drwill-ms in #2884
- Seal all options classes and transport options classes by @timtay-microsoft in #2877
- Remove unnecessary provisioning tests by @timtay-microsoft in #2881
- Remove https references by @schoims in #2886
- Remove unnecessary provisioning tests by @timtay-microsoft in #2888
- API accessors and naming updates by @drwill-ms in #2885
- Update SDK v2 migration guide.md by @schoims in #2889
- Consolidate "C#" and ".NET" used interchangeably to reference our SDK by @ngastelum-ms in #2891
- Make tests more resilient to service latency by @drwill-ms in #2890
- Remove ToJson() methods by @drwill-ms in #2892
- Get rid of a previous NRE, and nearby updates by @drwill-ms in #2893
- merge latest from main by @drwill-ms in #2895
- Fix up from main merge by @drwill-ms in #2897
- Tags property on twin should just be a dictionary by @drwill-ms in #2899
- Handle test retry for modules by @drwill-ms in #2900
- Use DateTimeOffset instead of DateTime by @tmahmood-microsoft in #2894
- Consolidate TwinCollection.ClearMetadata() and ClearAllMetadata() by @ngastelum-ms in #2901
- Remove app insights logging from tests by @drwill-ms in #2902
- trim dps service client twin types by @drwill-ms in #2903
- Continue consolidating the auth methods for the hub device by @brycewang-microsoft in #2854
- Delete duplicate sample by @schoims in #2907
- Disambiguate twin classes from hub and dps service clients by @drwill-ms in #2910
- Turn SDK log capturing off by default for E2E tests by @drwill-ms in #2912
- Disambiguate direct method model names from client and service libraries by @drwill-ms in #2911
- Integrate AuthenticationProvider lib into Provisioning device lib by @abhipsaMisra in #2916
- Add more info and restructure migration guide by @drwill-ms in #2917
- Remove unnecessary Fx.cs class method by @ngastelum-ms in #2915
- Update all non-test framework NuGets to latest version by @drwill-ms in #2918
- Update SDK nugets and a Moq-ify a test by @drwill-ms in #2924
- Rename DPS exception types by @brycewang-microsoft in #2923
- Add retry policies into service clients by @brycewang-microsoft in #2919
- Add retry policies into DPS device by @brycewang-microsoft in #2926
- Add retry policies into DPS service by @brycewang-microsoft in #2927
- Catch TLS exceptions during connect by @brycewang-microsoft in #2928
- Update preview version by @drwill-ms in #2930
Full Changelog: 2022-10-14-v2preview...2022-11-03