The Free Software Media System - Server Backend & API
Register IAuthService correctly
Mark Monteiro314711147181
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex f985320350..00700a3064 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -842,8 +842,7 @@ namespace Emby.Server.ImplementationsserviceCollection.AddSingleton<IAuthorizationContext>(authContext);serviceCollection.AddSingleton<ISessionContext>(new SessionContext(UserManager, authContext, SessionManager));- AuthService = new AuthService(LoggerFactory.CreateLogger<AuthService>(), authContext, ServerConfigurationManager, SessionManager, NetworkManager);- serviceCollection.AddSingleton(AuthService);+ serviceCollection.AddSingleton<IAuthService, AuthService>();serviceCollection.AddSingleton<ISubtitleEncoder, MediaBrowser.MediaEncoding.Subtitles.SubtitleEncoder>();