namespace ZeroFramework.IdentityServer.API.Tenants { public static class TenantMiddlewareExtensions { public static IServiceCollection AddTenantMiddleware(this IServiceCollection services) { services.AddSingleton(); services.AddTransient(); services.AddTransient(); return services.AddTransient(); } public static IApplicationBuilder UseTenantMiddleware(this IApplicationBuilder builder) { return builder.UseMiddleware(); } } }