2023-10-20 07:50:57 +00:00
|
|
|
using System;
|
2022-05-27 10:36:39 +00:00
|
|
|
using Elsa.Features.Services;
|
|
|
|
|
using Elsa.Http.Features;
|
2022-05-26 10:47:31 +00:00
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
2022-12-31 15:16:43 +00:00
|
|
|
namespace Elsa.Extensions;
|
2022-05-26 10:47:31 +00:00
|
|
|
|
2022-12-30 12:11:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Provides extensions to install the <see cref="HttpFeature"/> feature.
|
|
|
|
|
/// </summary>
|
2022-11-23 10:20:00 +00:00
|
|
|
public static class ModuleExtensions
|
2022-05-26 10:47:31 +00:00
|
|
|
{
|
2022-12-30 12:11:29 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Install the <see cref="HttpFeature"/> feature.
|
|
|
|
|
/// </summary>
|
2022-05-27 10:36:39 +00:00
|
|
|
public static IModule UseHttp(this IModule module, Action<HttpFeature>? configure = default)
|
2022-05-26 10:47:31 +00:00
|
|
|
{
|
2022-05-27 10:36:39 +00:00
|
|
|
module.Configure(configure);
|
|
|
|
|
return module;
|
2022-05-26 10:47:31 +00:00
|
|
|
}
|
|
|
|
|
}
|