فهرست منبع

Register ISessionContext correctly

Mark Monteiro 5 سال پیش
والد
کامیت
358deecf52
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

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