You learned how to reuse a Helper method within the Azure Function app. However, you cannot reuse the across other function apps or any other type of application such as Web app, WPF Application, and so on. In this recipe, we will develop and create a new .dll file and you will learn how to use the classes and its methods in the Azure Functions.
Shared code across Azure Functions using class libraries
How to do it...
- Create a new Class Library application using Visual Studio 2015 with .NET Framework 4.6.1, as shown in the following screenshot:
- Create a new class named EMailFormatter and paste the following code in the new class file:
namespace Utilities
{
public static class EMailFormatter
...