Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

Full Function Code

For the sake of readability, the following code does not check for any errors or edge cases. In a production system, you should add exception and edge case handling in case of unexpected input and so on.

The following is the full AverageResults function code:

        using System;        using System.Linq;        using Microsoft.Azure.WebJobs;        using Microsoft.Azure.WebJobs.Host;        using Microsoft.Azure.ApiHub;        using Newtonsoft.Json.Linq;        using System.Xml;        namespace TextEvaluation        {         public static class AverageResults         {           [FunctionName("AverageResults")]           public static async Task Run(           [TimerTrigger("0 * * * * *")]TimerInfo myTimer,           [ApiHubTable(connection: "azureSQL", TableName =            "DocumentTextScore")]ITable<TextScore> scoresTable, [ApiHubTable(connection: ...
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

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content