Skip to content

[release/6.0-rc2] Add support for BindAsync without ParameterInfo #36590

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 4 commits into from
Sep 16, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 16, 2021

Backport of #36580 to release/6.0-rc2

/cc @BrennanConroy @github-actions[bot]

Customer Impact

Users who write a BindAsync method on their class to override parsing logic may see a VS info/warning to remove the ParameterInfo parameter from the method because they didn't use it. This would then break the behavior because BindAsync without a ParameterInfo wouldn't match the BindAsync we're looking for. Or the user will need to suppress or ignore the recommendation to remove the unused param.

Testing

Good test coverage for old and new behavior and checking that the fallback works correctly.

Risk

Low, we are adding a fallback to a working scenario and there is very little risk that something broke.

@BrennanConroy BrennanConroy added this to the 6.0-rc2 milestone Sep 16, 2021
@BrennanConroy BrennanConroy 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 Sep 16, 2021
@BrennanConroy
Copy link
Member

@Pilchie Are we in tell mode or do we need to go to tactics?

@BrennanConroy BrennanConroy requested a review from a team September 16, 2021 15:52
@Pilchie
Copy link
Member

Pilchie commented Sep 16, 2021

We're in M2 approval mode, so you need to tag me. You're ok to merge this change.

@BrennanConroy BrennanConroy changed the title [release/6.0-rc2] [release/6.0] Add support for BindAsync without ParameterInfo [release/6.0-rc2] Add support for BindAsync without ParameterInfo Sep 16, 2021
@BrennanConroy
Copy link
Member

@dotnet/aspnet-build Would someone be willing to merge this? OnValidateIdentityDoesNotExtendExpirationWhenSlidingIsDisabled failed but is being fixed in #36626

@wtgodbe wtgodbe merged commit 64b46ce into release/6.0-rc2 Sep 16, 2021
@wtgodbe wtgodbe deleted the backport/pr-36580-to-release/6.0-rc2 branch September 16, 2021 22:55
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.

4 participants