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

Option 2 - the project.json file

To add other NuGet packages to the Function App, we need to reference them in the project.json file. Let us show a step-by-step example of how to configure such a reference.

Let us create a script-based version of our ProcessQueue function, and add a reference to the NuGet library called HtmlAgilityPack. To do so, execute the following steps:

  1. Browse to your Function App.
  2. Click on Functions -> Add -> ServiceBusQueueTrigger - C#.
  3. Choose ProcessQueueScript in the new function's name, and choose the same Service Bus connection and queue that we've used in Chapter 5, Integrations and Dependencies.
  1. Paste the following code into the function's run.csx file:
        using System;        using System.Threading.Tasks; using HtmlAgilityPack; ...
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