Register ISessionContext correctly

This commit is contained in:
Mark Monteiro 2020-04-04 12:38:59 -04:00
parent 3147111471
commit 358deecf52

View File

@ -840,7 +840,7 @@ namespace Emby.Server.Implementations
var authContext = new AuthorizationContext(AuthenticationRepository, UserManager);
serviceCollection.AddSingleton<IAuthorizationContext>(authContext);
serviceCollection.AddSingleton<ISessionContext>(new SessionContext(UserManager, authContext, SessionManager));
serviceCollection.AddSingleton<ISessionContext, SessionContext>();
serviceCollection.AddSingleton<IAuthService, AuthService>();