-
Notifications
You must be signed in to change notification settings - Fork 241
Split aot compatible and incompatible methods #3090
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
Conversation
|
Thanks @SaurabhMSFT. Is there duplication of code? I couldn't figure out without pulling the branch (which I have not done yet) |
|
I had to copy the method DeserializeOutputImplAsync and split the if block on left side(line 398-405) into two methods. Due to that if clause DeserializeOutputImplAsync method wasn't AOT compatible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @SaurabhMSFT
Description
The Deserialize method would call an aot incompatible if the output info is null. We split the method into two such that the aot compatible code calls overload with JsonTypeInfo