diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-04-04 12:38:59 -0400 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-04-04 12:38:59 -0400 |
| commit | 358deecf52370ef764b65d56f83a21d0eebcd91a (patch) | |
| tree | 86ac2dba91763a36c2ffc170433c469e46400348 | |
| parent | 314711147181ae26af4857b113b0e2acdcf10931 (diff) | |
Register ISessionContext correctly
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 00700a306..a90f14b1f 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/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>(); |
