elsa-core/src/modules/Elsa.Webhooks/Extensions/ModuleExtensions.cs
Sipke Schoorstra 64c4d89739 Update namespace in ModuleExtensions.cs
The namespace in the ModuleExtensions.cs file within Elsa.Webhooks has been changed. The change moves the namespace from "Elsa.Webhooks.Extensions" to "Elsa.Extensions". A ReSharper directive has been added to disable warnings related to the namespace check.
2024-01-26 11:25:25 +01:00

20 lines
588 B
C#

using Elsa.Features.Services;
using Elsa.Webhooks.Features;
// ReSharper disable once CheckNamespace
namespace Elsa.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;
}
}