Repository navigation
Serialization and Deserialization in C#: move SerializationDemo to .NET 11 - #2405
Open
vladimir-pecanac-main wants to merge 1 commit into
Conversation
…amework Retarget all four projects to net11.0. Common references protobuf-net 3.4.40 directly; the API references WebApiContrib.Core.Formatter.Protobuf 3.0.0 and Microsoft.AspNetCore.OpenApi 11.0.0 in place of Swashbuckle. CachedJsonClient.RefreshCache no longer serializes the JSON response a second time. Serializers return T?, the client awaits instead of .Result, and the tests run on MSTest 4.5.3 only (the four NUnit tests are converted, the JSON byte test now tests JsonByteSerializer, a Protobuf GET test is added; 12 tests).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves aspnetcore-webapi/SerializationDemo to net11.0. The shared models reference protobuf-net 3.4.40 directly, the API keeps WebApiContrib.Core.Formatter.Protobuf 3.0.0 and replaces Swashbuckle with Microsoft.AspNetCore.OpenApi 11.0.0, and the cache client no longer serializes the JSON response twice (it threw a JsonException). The serializers return nullable results, the console client awaits instead of blocking on .Result, and the test project runs on MSTest 4.5.3 only: the four NUnit tests are converted, the JSON byte test now covers JsonByteSerializer, and a new test reads a Protobuf GET back into five employees (12 tests). The unused Microsoft.AspNetCore.Http 2.2.2 reference and the vulnerable package versions are gone.