20 lines
589 B
C#
20 lines
589 B
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Installs and configures the <see cref="TenantsFeature"/> feature.
|
|
/// </summary>
|
|
public static IModule UseTenants(this IModule module, Action<TenantsFeature>? configure = default)
|
|
{
|
|
module.Configure(configure);
|
|
return module;
|
|
}
|
|
} |