aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-04-04 15:44:44 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-04-04 15:44:44 -0400
commit11693d6024f4b8dafb69ac4a4fcb85ee2caad065 (patch)
treea610909b593ca69fb3a5290cc8a6ce34a4af8ccb /Emby.Server.Implementations/ApplicationHost.cs
parent71c84905de8f1c303c991b240d22a2f9616965e8 (diff)
Register ITvManagerService correctly
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 9d4964a9e..c5b8878f8 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -272,8 +272,6 @@ namespace Emby.Server.Implementations
public LocalizationManager LocalizationManager { get; set; }
-
-
/// <summary>
/// Gets or sets the user data repository.
/// </summary>
@@ -284,8 +282,6 @@ namespace Emby.Server.Implementations
private IAuthenticationRepository AuthenticationRepository { get; set; }
- private ITVSeriesManager TVSeriesManager { get; set; }
-
/// <summary>
/// Gets the installation manager.
/// </summary>
@@ -730,8 +726,7 @@ namespace Emby.Server.Implementations
ImageProcessor = new ImageProcessor(LoggerFactory.CreateLogger<ImageProcessor>(), ServerConfigurationManager.ApplicationPaths, FileSystemManager, ImageEncoder, () => LibraryManager, () => MediaEncoder);
serviceCollection.AddSingleton(ImageProcessor);
- TVSeriesManager = new TVSeriesManager(UserManager, UserDataManager, LibraryManager, ServerConfigurationManager);
- serviceCollection.AddSingleton(TVSeriesManager);
+ serviceCollection.AddSingleton<ITVSeriesManager, TVSeriesManager>();
serviceCollection.AddSingleton<IDeviceManager, DeviceManager>();
@@ -918,7 +913,7 @@ namespace Emby.Server.Implementations
BaseItem.ChannelManager = Resolve<IChannelManager>();
Video.LiveTvManager = Resolve<ILiveTvManager>();
Folder.UserViewManager = Resolve<IUserViewManager>();
- UserView.TVSeriesManager = TVSeriesManager;
+ UserView.TVSeriesManager = Resolve<ITVSeriesManager>();
UserView.CollectionManager = Resolve<ICollectionManager>();
BaseItem.MediaSourceManager = Resolve<IMediaSourceManager>();
CollectionFolder.XmlSerializer = XmlSerializer;