I'm attempting to read the content of the request like so:
var translation = await req.Content.ReadAsStringAsync();
But getting this exception:
Severity Code Description Project File Line Suppression State Error CS1061 'HttpRequest' does not contain a definition for 'Content' and no accessible extension method 'Content' accepting a first argument of type 'HttpRequest' could be found (are you missing a using directive or an assembly reference?)
Here are the libraries I am using:
What am I doing wrong? How can I read the body of the content?
Here's the surrounding code:
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "OnTranslateSingleHttpTriggered")] HttpRequest req,
ILogger log)
{
var translation = await req.Content.ReadAsStringAsync();
//do work
}

