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

create rdg7 sample #200

Merged
merged 1 commit into from
Sep 29, 2023
Merged

create rdg7 sample #200

merged 1 commit into from
Sep 29, 2023

Conversation

timdeschryver
Copy link
Contributor

@timdeschryver timdeschryver commented Sep 29, 2023

public record Todo(int Id, string Task);

[JsonSerializable(typeof(Todo[]))]
internal partial class AppJsonSerializerContext : JsonSerializerContext
Copy link
Contributor Author

@timdeschryver timdeschryver Sep 29, 2023

Choose a reason for hiding this comment

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

I looked at the other RDG examples, but I think this isn't required here?

Copy link
Contributor

Choose a reason for hiding this comment

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

It was needed in the first sample and I just copied it. Maybe I can get rid of it in all my samples.

@Rick-Anderson Rick-Anderson merged commit da04803 into dotnet:main Sep 29, 2023
1 check passed
@Rick-Anderson
Copy link
Contributor

@timdeschryver great work. Your changes will be live in 15 minutes. Can you take a look at the live version and open any need issues?

@timdeschryver
Copy link
Contributor Author

@Rick-Anderson thank you.

The changes are looking good, but I messed up a highlight. I will fix this in an upcoming PR.

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/aot/request-delegate-generator/diagnostics/rdg007?view=aspnetcore-8.0
image

@Rick-Anderson
Copy link
Contributor

Easy to fix from the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants