The Free Software Media System - Server Backend & API
Register ServiceController with the DI framework
Mark Monteiro6f8c81ff7e8a
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 3c9bd207bb..dcd54e651a 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -43,6 +43,7 @@ using Emby.Server.Implementations.Playlists;using Emby.Server.Implementations.ScheduledTasks;using Emby.Server.Implementations.Security;using Emby.Server.Implementations.Serialization;+using Emby.Server.Implementations.Services;using Emby.Server.Implementations.Session;using Emby.Server.Implementations.SocketSharp;using Emby.Server.Implementations.TV;@@ -758,6 +759,7 @@ namespace Emby.Server.ImplementationsCertificateInfo = GetCertificateInfo(true);Certificate = GetCertificate(CertificateInfo);+ serviceCollection.AddSingleton<ServiceController>();serviceCollection.AddSingleton<IHttpListener, WebSocketSharpListener>();serviceCollection.AddSingleton<IHttpServer, HttpListenerHost>();