Register IAuthorizationContext correctly

This commit is contained in:
Mark Monteiro 2020-04-04 12:40:33 -04:00
parent 358deecf52
commit 18c1823cea

View File

@ -838,8 +838,7 @@ namespace Emby.Server.Implementations
serviceCollection.AddSingleton(activityLogRepo);
serviceCollection.AddSingleton<IActivityManager>(new ActivityManager(LoggerFactory, activityLogRepo, UserManager));
var authContext = new AuthorizationContext(AuthenticationRepository, UserManager);
serviceCollection.AddSingleton<IAuthorizationContext>(authContext);
serviceCollection.AddSingleton<IAuthorizationContext, AuthorizationContext>();
serviceCollection.AddSingleton<ISessionContext, SessionContext>();
serviceCollection.AddSingleton<IAuthService, AuthService>();