Using Visual Studio

In the previous section, you created a function using a wizard in Visual Studio. If you go back to this particular project and open its file, you will see some common code, which is always created with this particular template. Here, you can find the same code but without the custom code introduced by it:

using System.Net.Http;using System.Threading.Tasks;using Microsoft.Azure.WebJobs;using Microsoft.Azure.WebJobs.Extensions.Http;using Microsoft.Azure.WebJobs.Host;namespace HandsOnAzure.Function{    public static class Function1    {        [FunctionName("Function1")]        public static async Task<HttpResponseMessage> Run(            [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]            HttpRequestMessage req, TraceWriter log) { ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.