using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; namespace MultiTenancySample.ServiceDefaults { public static class MultiTenancyExtensions { public static IServiceCollection AddMultiTenancy(this IServiceCollection services) { services.AddScoped(); services.AddScoped(); return services.AddScoped(); } public static IApplicationBuilder UseMultiTenancy(this IApplicationBuilder app) { app.UseMiddleware(); return app; } } }