Add .ctor(string) to FromHeaderAttribute and FromQueryAttribute #36418
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-minimal-actions
Controller-like actions for endpoint routing
triage-focus
Add this label to flag the issue for focus at triage
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Background and Motivation
When using Minimal APIs, using explicit query string or header parameter names using attributes requires a less-minimal amount of attribute declaration that would be possible if the relevant attributes did not only have a default constructor.
Proposed API
Usage Examples
Alternative Designs
None, retain the existing usage patterns.
Risks
None that I'm aware of.
EDIT: Added
FromRouteAttribute
too.The text was updated successfully, but these errors were encountered: