aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-04 13:16:41 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-04 13:16:53 -0400
commit3d5b4f869c9edb1e297b89b82221ee837ac6330e (patch)
tree8ea46f7be28e6838644dbeec6e24ac418c0b4bfd /Emby.Server.Implementations/ApplicationHost.cs
parent14563654113192fbf162c5238c79a0f908587c05 (diff)
Register ILiveTvManager and IPlaylistManager correctly
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index aa1e9ab9d4..94d656e16c 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -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>();