Skip to content

Commit 62c712c

Browse files
authored
Add support for binding parameter with [FromBody] (#46641)
* Add support for binding parameter with [FromBody] * Address feedback from review
1 parent cf342f8 commit 62c712c

20 files changed

+16384
-98
lines changed

src/Http/Http.Extensions/gen/RequestDelegateGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
6969
},
7070
(del, options, inferredMetadataResult) =>
7171
{
72-
var handler = ({{endpoint.EmitHandlerDelegateType()}})del;
72+
var handler = ({{endpoint.EmitHandlerDelegateCast()}})del;
7373
EndpointFilterDelegate? filteredInvocation = null;
7474
7575
if (options?.EndpointBuilder?.FilterFactories.Count > 0)

0 commit comments

Comments
 (0)