The Free Software Media System - Server Backend & API
Register ISessionContext correctly
Mark Monteiro358deecf5237
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 00700a3064..a90f14b1f5 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -840,7 +840,7 @@ namespace Emby.Server.Implementationsvar 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>();