Consider adding an API that enables invoking the default parameter binding logic of RequestDelegateFactory explicitly #38003
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-minimal-actions
Controller-like actions for endpoint routing
Priority:3
Work that is nice to have
triage-focus
Add this label to flag the issue for focus at triage
Milestone
We should consider adding an API that enables the ability to invoke the parameter binding logic inherent in
RequestDelegateFactory
without having to create aRequestDelegate
. This would be useful in situations where the default logic isn't invoked implicitly, e.g. when a complex parameter implementsBindAsync
, but invoking the behavior in an observable fashion would still add utility.Such an API exists in the MinimalApis.Extensions library and is used by many of the included utility classes (example).
Strawman API proposal:
Example use:
The text was updated successfully, but these errors were encountered: