-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Support Request, Response and User for minimal actions #33883
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
Support Request, Response and User for minimal actions #33883
Conversation
Adds support to minimal actions for parameters of type HttpRequest, HttpResponse, and ClaimsPrincipal to be bound to the values of the Request, Response and User properties of the HttpContext respectively. Also cleans up some typos in the RequestDelegateFactory tests. Addresses dotnet#33870.
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, but will give @halter73 a chance to review.
@martincostello one thing we missed is the api explorer support aspnetcore/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs Line 169 in 26fba65
|
Good spot. Do you want me to push up a PR to amend that? |
Hi @martincostello. 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. |
Yep! |
Fix minimal actions parameters for HttpRequest, HttpResponse and ClaimsPrincipal being marked as body parameters by API Explorer. Relates to dotnet#33870 and dotnet#33883.
PR Title
Support Request, Response and User for minimal actions
PR Description
Adds support to minimal actions for parameters of type
HttpRequest
,HttpResponse
, andClaimsPrincipal
to be bound to the values of theRequest
,Response
andUser
properties of theHttpContext
respectively.Also cleans up some typos and IDE suggestions in the
RequestDelegateFactory
tests.Fixes #33870