using Elsa.Features.Services;
using Elsa.Tenants.Features;
using JetBrains.Annotations;
// ReSharper disable once CheckNamespace
namespace Elsa.Tenants.Extensions;
///
/// Extensions for that installs the feature.
///
[UsedImplicitly]
public static class ModuleExtensions
{
///
/// Installs and configures the feature.
///
[UsedImplicitly]
public static IModule UseTenants(this IModule module, Action? configure = null)
{
module.Configure(configure);
return module;
}
extension(TenantsFeature feature)
{
///
/// Installs and configures the feature.
///
[UsedImplicitly]
public TenantsFeature UseTenantManagementEndpoints(Action? configure = null)
{
feature.Module.Configure(configure);
return feature;
}
///
/// Installs and configures the feature.
///
[UsedImplicitly]
public TenantsFeature UseTenantManagement(Action? configure = null)
{
feature.Module.Configure(configure);
return feature;
}
}
}