Skip to content

Using JsonTypeInfo to read request body in RDF #45932

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

Merged
merged 5 commits into from
Jan 10, 2023

Conversation

brunolins16
Copy link
Member

Contributes #45527

Updating RDF to use AOT/linker-safe methods to read the request body as JSON.

Obs.: I decided to not add additional unit/functional test because the current tests cover most part of the behavior already.

Eg.:

public async Task RequestDelegatePopulatesFromBodyParameter(Delegate action)

public async Task MapPost_FromBodyWorksWithJsonPayload()

Waiting for #45593 and #45405

@brunolins16 brunolins16 added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Jan 6, 2023
@ghost ghost added the area-runtime label Jan 6, 2023
@davidfowl
Copy link
Member

This is a performance optimization, not an AOT work item. RDF has been marked unsafe for linking and AOT.

@brunolins16 brunolins16 marked this pull request as ready for review January 10, 2023 19:41
@brunolins16 brunolins16 merged commit 97a118c into dotnet:main Jan 10, 2023
@brunolins16 brunolins16 deleted the brunolins16/aot/json-rdf-request branch January 10, 2023 21:27
@ghost ghost added this to the 8.0-preview1 milestone Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants