using Elsa.Features.Services;
using Elsa.Tenants.Features;
// ReSharper disable once CheckNamespace
namespace Elsa.Tenants.Extensions;
/// <summary>
/// Extensions for <see cref="IModule"/> that installs the <see cref="TenantsFeature"/> feature.
/// </summary>
public static class ModuleExtensions
{
/// Installs and configures the <see cref="TenantsFeature"/> feature.
public static IModule UseTenants(this IModule module, Action<TenantsFeature>? configure = default)
module.Configure(configure);
return module;
}
/// Installs and configures the <see cref="TenantManagementEndpointsFeature"/> feature.
public static TenantsFeature UseTenantManagementEndpoints(this TenantsFeature feature, Action<TenantManagementEndpointsFeature>? configure = default)
feature.Module.Configure(configure);
return feature;
/// Installs and configures the <see cref="TenantManagementFeature"/> feature.
public static TenantsFeature UseTenantManagement(this TenantsFeature feature, Action<TenantManagementFeature>? configure = default)