The Free Software Media System - Server Backend & API
Register IDeviceDiscovery, IChapterManager, IAttachmentExtractor correctly
Mark Monteiro78370911c20d
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 7d72b8e08b..777c12eaed 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -302,8 +302,6 @@ namespace Emby.Server.Implementationsprivate ISubtitleManager SubtitleManager { get; set; }- private IChapterManager ChapterManager { get; set; }-private IDeviceManager DeviceManager { get; set; }internal IUserViewManager UserViewManager { get; set; }@@ -815,10 +813,9 @@ namespace Emby.Server.ImplementationsServerConfigurationManager);serviceCollection.AddSingleton(NotificationManager);- serviceCollection.AddSingleton<IDeviceDiscovery>(new DeviceDiscovery(ServerConfigurationManager));+ serviceCollection.AddSingleton<IDeviceDiscovery, DeviceDiscovery>();- ChapterManager = new ChapterManager(ItemRepository);- serviceCollection.AddSingleton(ChapterManager);+ serviceCollection.AddSingleton<IChapterManager, ChapterManager>();serviceCollection.AddSingleton<IEncodingManager, MediaEncoder.EncodingManager>();@@ -835,7 +832,7 @@ namespace Emby.Server.ImplementationsserviceCollection.AddSingleton<IResourceFileManager, ResourceFileManager>();serviceCollection.AddSingleton<EncodingHelper>();- serviceCollection.AddSingleton(typeof(IAttachmentExtractor), typeof(MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor));+ serviceCollection.AddSingleton<IAttachmentExtractor, MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor>();}/// <summary>