Register ILiveTvManager and IPlaylistManager correctly

This commit is contained in:
Mark Monteiro
2020-04-04 13:16:41 -04:00
parent 1456365411
commit 3d5b4f869c
2 changed files with 6 additions and 6 deletions

View File

@@ -797,10 +797,9 @@ namespace Emby.Server.Implementations
CollectionManager = new CollectionManager(LibraryManager, ApplicationPaths, LocalizationManager, FileSystemManager, LibraryMonitor, LoggerFactory, ProviderManager);
serviceCollection.AddSingleton(CollectionManager);
serviceCollection.AddSingleton(typeof(IPlaylistManager), typeof(PlaylistManager));
serviceCollection.AddSingleton<IPlaylistManager, PlaylistManager>();
LiveTvManager = new LiveTvManager(this, ServerConfigurationManager, LoggerFactory, ItemRepository, ImageProcessor, UserDataManager, DtoService, UserManager, LibraryManager, TaskManager, LocalizationManager, JsonSerializer, FileSystemManager, () => ChannelManager);
serviceCollection.AddSingleton(LiveTvManager);
serviceCollection.AddSingleton<ILiveTvManager, LiveTvManager>();
serviceCollection.AddSingleton<IUserViewManager, UserViewManager>();
@@ -833,6 +832,7 @@ namespace Emby.Server.Implementations
/// </summary>
public void InitializeServices()
{
LiveTvManager = Resolve<ILiveTvManager>();
NotificationManager = Resolve<INotificationManager>();
HttpServer = Resolve<IHttpServer>();