forked from gongxuegit/tiku-backend.net
perf: optimize authorization scoreline and workers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Tiku.Application.Security;
|
||||
using Tiku.Application.Auth;
|
||||
|
||||
namespace Tiku.Application;
|
||||
|
||||
@@ -8,6 +9,7 @@ public static class DependencyInjection
|
||||
public static IServiceCollection AddApplication(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ICurrentUser, CurrentUser>();
|
||||
services.AddScoped<IRequestSecurityState, RequestSecurityState>();
|
||||
services.AddScoped<TenantContext>();
|
||||
services.AddScoped<ITenantContext>(provider => provider.GetRequiredService<TenantContext>());
|
||||
services.AddScoped<ITenantContextInitializer>(provider => provider.GetRequiredService<TenantContext>());
|
||||
|
||||
Reference in New Issue
Block a user