Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ObjectCreationHandling.Populate in gRPC JSON transcoding #48084

Merged
merged 1 commit into from
May 6, 2023

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented May 5, 2023

Fixes #47896

Replace collection hack with ObjectCreationHandling.Populate. This avoids deserializing values into an intermediary collection.

@dotnet/area-system-text-json FYI. Took less than 10 minutes to update transcoding to use the new feature. Works great.

@JamesNK JamesNK added the area-grpc Includes: GRPC wire-up, templates label May 5, 2023
Copy link
Member

@BrennanConroy BrennanConroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@JamesNK JamesNK merged commit ec578d6 into main May 6, 2023
@JamesNK JamesNK deleted the jamesnk/grpc-jsontranscoding-populate branch May 6, 2023 04:05
@ghost ghost added this to the 8.0-preview5 milestone May 6, 2023
@eiriktsarpalis
Copy link
Member

Nice 👍

@ghost
Copy link

ghost commented May 6, 2023

Hi @eiriktsarpalis. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grpc Includes: GRPC wire-up, templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC JSON transcoding: Append values to collections
3 participants