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