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

20 lines
555 B
C#
Raw Normal View History

using Elsa.Features.Services;
using Elsa.Http.Features;
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection;
/// <summary>
/// Provides extensions to install the <see cref="HttpFeature"/> feature.
/// </summary>
2022-11-23 10:20:00 +00:00
public static class ModuleExtensions
{
/// <summary>
/// Install the <see cref="HttpFeature"/> feature.
/// </summary>
public static IModule UseHttp(this IModule module, Action<HttpFeature>? configure = default)
{
module.Configure(configure);
return module;
}
}