So far, you have learned how to reuse a Helper method within an Azure function app. However, you cannot reuse it across other function apps or any other type of application, such as a web app or a WPF application. In this recipe, we will develop and create a new .dll file, and you will learn how to use the classes and their methods in Azure Functions.
Shared code across Azure Functions using class libraries
How to do it...
Perform the following steps:
- Create a new Class Library application using Visual Studio. I used Visual Studio 2017:
- Create a new class named Helper and paste the following code into the new class file:
namespace Utilities
{
public class Helper
{
public static string GetReusableFunctionOutput...