elsa-core/src/modules/Elsa.Connections.Persistence/Extensions/ConnectionPersistenceExtensions.cs
Sipke Schoorstra 78c6df152e
Refactor and clean up Connections API and Core components
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.
2025-02-23 14:07:32 +01:00

20 lines
621 B
C#

using Elsa.Connections.Persistence.Features;
using Elsa.Features.Services;
// ReSharper disable once CheckNamespace
namespace Elsa.Extensions;
/// <summary>
/// Extends <see cref="IModule"/> with methods to use Connection Persistence Feature.
/// </summary>
public static class ConnectionPersistenceExtensions
{
/// <summary>
/// Installs the persistence feature for the Connection module.
/// </summary>
public static IModule UseConnectionPersistence(this IModule module, Action<ConnectionPersistenceFeature>? configure = null)
{
return module.Use(configure);
}
}