The Free Software Media System - Server Backend & API
Remove old instantiation of serviceProvider in app host
Claus Viumc011fa2ea80a
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex a9c4e1fdc9..11ee6d2d20 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -663,6 +663,7 @@ namespace Emby.Server.Implementations.SetCompatibilityVersion(CompatibilityVersion.Version_2_2).AddApplicationPart(Assembly.Load("Jellyfin.Api"));services.AddApiVersioning(opt => opt.ReportApiVersions = true);+ // Merge the external ServiceCollection into ASP.NET DIservices.TryAdd(serviceCollection);}).Configure(app =>@@ -929,8 +930,6 @@ namespace Emby.Server.Implementations((UserDataManager)UserDataManager).Repository = userDataRepo;ItemRepository.Initialize(userDataRepo, UserManager);((LibraryManager)LibraryManager).ItemRepository = ItemRepository;-- _serviceProvider = serviceCollection.BuildServiceProvider();}public static void LogEnvironmentInfo(ILogger logger, IApplicationPaths appPaths)