Removed unused code, optimized imports, and updated method signatures for better null-safety and consistency. Consolidated redundant logic, improved error handling in endpoints, and applied modern syntax and practices across the Connections module.
19 lines
529 B
C#
19 lines
529 B
C#
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>
|
|
/// Installs the Connections API feature.
|
|
/// </summary>
|
|
public static IModule UseConnectionsApi(this IModule module, Action<ConnectionsApiFeature>? configure = null)
|
|
{
|
|
return module.Use(configure);
|
|
}
|
|
} |