Shared code across Azure Functions using class libraries
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.
How to do it...
- Create a new
Class Libraryapplication using Visual Studio 2015 with.NET Framework 4.6.1, as shown in the following screenshot:

- Create a new class named
EMailFormatterand paste the following code in the new class file:
namespace Utilities
{
public static class EMailFormatter
{
public static string FrameBodyContent(string firstname,
string lastname, string email, string profilePicUrl)
{
string strBody = "Thank you <b>" + firstname + " " +
lastname + "<...