elsa-core/src/modules/Elsa.Tenants/Extensions/ModuleExtensions.cs
Marko Lahma 12f947cf9b
Upgrade Quartz and some warning fixes (#5949)
Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2024-09-16 01:55:24 -07:00

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;
}
}