zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.API/Extensions/Tenants/TenantMiddlewareExtensions.cs
2023-12-05 17:22:48 +08:00

16 lines
486 B
C#

namespace ZeroFramework.DeviceCenter.API.Extensions.Tenants
{
public static class TenantMiddlewareExtensions
{
public static IServiceCollection AddTenantMiddleware(this IServiceCollection services)
{
return services.AddTransient<TenantMiddleware>();
}
public static IApplicationBuilder UseTenantMiddleware(this IApplicationBuilder builder)
{
return builder.UseMiddleware<TenantMiddleware>();
}
}
}