We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1299570 commit 26da821Copy full SHA for 26da821
src/WhatsApp/AzureFunctionsExtensions.cs
@@ -57,6 +57,15 @@ static void ConfigureServices(IServiceCollection services)
57
.ValidateDataAnnotations();
58
}
59
60
+ /// <summary>
61
+ /// Configure WhatsApp functions and use an already registered service that implements <see cref="IWhatsAppHandler"/>.
62
+ /// </summary>
63
+ public static IFunctionsWorkerApplicationBuilder UseWhatsApp(this IFunctionsWorkerApplicationBuilder builder)
64
+ {
65
+ ConfigureServices(builder.Services);
66
+ return builder;
67
+ }
68
+
69
/// <summary>
70
/// Configure the WhatsApp handler for Azure Functions.
71
/// </summary>
0 commit comments