Do not create unnecessary instances of IService at server startup

This commit is contained in:
Mark Monteiro
2020-03-21 23:17:30 +01:00
parent aa546dd36a
commit dc140429fe
3 changed files with 7 additions and 8 deletions

View File

@@ -1046,7 +1046,7 @@ namespace Emby.Server.Implementations
.Where(i => i != null)
.ToArray();
HttpServer.Init(GetExports<IService>(false), GetExports<IWebSocketListener>(), GetUrlPrefixes());
HttpServer.Init(GetExportTypes<IService>(), GetExports<IWebSocketListener>(), GetUrlPrefixes());
LibraryManager.AddParts(
GetExports<IResolverIgnoreRule>(),