Running the function locally

The function code is provided next. The auto-generated code implements the same behavior as we've seen in the HelloWorld function created online, however, you will notice a few differences in code. The differences exist because the online function was a C# script ( CSX ) based function.

The Visual Studio "precompiled" function template has references to a number of system libraries and the Azure.WebJobs libraries, and the function's Run method is annotated with attributes. The FunctionName attribute indicates to the compiler that the Run method is a function entry point in the Function App class-library. The HttpTrigger attribute allows us to provide the trigger settings based on which the function.json file is ...

Get Serverless computing in Azure with .NET 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.