Prechádzať zdrojové kódy

Register ISessionContext correctly

Mark Monteiro 5 rokov pred
rodič
commit
358deecf52

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -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>();