2025-01-07 09:05:25 +00:00
|
|
|
using Elsa.Connections.Api.Features;
|
|
|
|
|
using Elsa.Features.Services;
|
|
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
|
namespace Elsa.Extensions;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Extends <see cref="IModule"/> with methods to Connection API endpoints.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class ModuleExtensions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2025-02-23 13:07:32 +00:00
|
|
|
/// Installs the Connections API feature.
|
2025-01-07 09:05:25 +00:00
|
|
|
/// </summary>
|
|
|
|
|
public static IModule UseConnectionsApi(this IModule module, Action<ConnectionsApiFeature>? configure = null)
|
|
|
|
|
{
|
|
|
|
|
return module.Use(configure);
|
|
|
|
|
}
|
|
|
|
|
}
|