elsa-core/src/modules/Elsa.Webhooks/Extensions/ModuleExtensions.cs

19 lines
556 B
C#
Raw Normal View History

using Elsa.Features.Services;
using Elsa.Webhooks.Features;
namespace Elsa.Webhooks.Extensions;
/// <summary>
/// Adds extensions to <see cref="IModule"/> that enables the <see cref="WebhooksFeature"/> feature.
/// </summary>
public static class ModuleExtensions
{
/// <summary>
/// Enables and configures the <see cref="WebhooksFeature"/> feature.
/// </summary>
public static IModule UseWebhooks(this IModule module, Action<WebhooksFeature>? configure = default)
{
module.Configure(configure);
return module;
}
}