I am moving some functions to .net 5 isolated process but I am not sure about how to extract data using the new HttpRequestData in .net core I could do req.Query["blah"]
How do you do it in .net 5 with HttpRequestData?
.net 3.1
public async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log)
{
string fieldA = req.Query["fieldA"];
string fieldB = req.Query["fieldB"];
//etc...
}
.net 5
public async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req, FunctionContext executionContext)
{
string fieldA = //???? req.Query["fieldA"];
string fieldB = //???req.Query["fieldB"];
//etc..
}