forked from xiongyuxing/tiku-backend.net
feat: enforce tenant isolation and shared question bank
This commit is contained in:
@@ -8,7 +8,9 @@ public static class DependencyInjection
|
||||
public static IServiceCollection AddApplication(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ICurrentUser, CurrentUser>();
|
||||
services.AddScoped<ICurrentTenant, CurrentTenant>();
|
||||
services.AddScoped<TenantContext>();
|
||||
services.AddScoped<ITenantContext>(provider => provider.GetRequiredService<TenantContext>());
|
||||
services.AddScoped<ITenantContextInitializer>(provider => provider.GetRequiredService<TenantContext>());
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user