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.
20 lines
621 B
C#
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);
|
|
}
|
|
}
|