Skip to Content
Azure Serverless Computing Cookbook
book

Azure Serverless Computing Cookbook

by Praveen Kumar Sreeram
August 2017
Intermediate to advanced
332 pages
8h 54m
English
Packt Publishing
Content preview from Azure Serverless Computing Cookbook

Creating a class library using Visual Studio

  1. Create a new Class Library named PrecompiledFunctions using Visual Studio. Make sure that you choose the latest .NET version framework.
  2. Create a new class named MyFunction and paste the following code in the new class file. It's nothing new; I just copied the code that gets by default when you create a new HTTP trigger using C# language:
        using System.Net;        using System.Linq;        using System.Threading.Tasks;        using System.Net.Http;        namespace PreCompiledFunctionSample        {           public class MyFunction           {              public static async Task<HttpResponseMessage>                MyRun(HttpRequestMessage req)               {                  // parse query parameter                  string name = req.GetQueryNameValuePairs()                   .FirstOrDefault(q => string.Compare(q.Key, "name",  true) == ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Azure Serverless Computing Cookbook - Second Edition

Azure Serverless Computing Cookbook - Second Edition

Praveen Kumar Sreeram, Jason Marston
Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo

Publisher Resources

ISBN: 9781788390828Supplemental Content