16 lines
486 B
C#
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>();
|
|
}
|
|
}
|
|
}
|