Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,15 @@ When the trigger parameter is of type `HttpRequestData` or `HttpRequest`, custom
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Functions.Worker;
using FromBodyAttribute = Microsoft.Azure.Functions.Worker.Http.FromBodyAttribute;
using FromBodyAttribute = Microsoft.Azure.Functions.Worker.Http.FromBodyAttribute; // <-- LOOK at this

namespace AspNetIntegration
{
public class BodyBindingHttpTrigger
{
[Function(nameof(BodyBindingHttpTrigger))]
public IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest req,
[FromBody] Person person)
[FromBody] Person person) // WARNING this FromBody attribute is from above explicit fully qualified using
{
return new OkObjectResult(person);
}
Expand Down