C# script-based functions are functions based on the .csx
files, which can be deployed in the Functions Portal, but not using Visual Studio. The .csx
files allow for writing C# script code. C# script allows you to define methods that aren't inside a class. At compilation time, the code is compiled into an overarching class. To learn more about C# script-based functions, please visit https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp.
If you are working with C# script-based functions, you will notice a few differences from the precompiled functions.
C# script-based functions do not have attributes in the function's signature. All of the required bindings are defined directly in the function.json
file.
As an example, we can look at our first HelloWorld
function that we have created in Chapter 2, Getting Started with the Azure Environment. This was an HTTP-triggered C# script-based function. The function's signature in the run.csx
file looked...