August 2017
Intermediate to advanced
468 pages
12h 5m
English
Let's take a look at the following steps to update the function code:
using System; namespace TextEvaluation { public static class ScoreText { [FunctionName("ScoreText")] public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]HttpRequestMessage req, TraceWriter log) { // parse query parameter string name = req.GetQueryNameValuePairs() .FirstOrDefault(q => string.Compare(q.Key, "name", true) == 0) .Value; ...