diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index b724dc3201..bae97c17ec 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -258,8 +258,6 @@ namespace Emby.Server.Implementations
protected INetworkManager NetworkManager { get; set; }
- public IJsonSerializer JsonSerializer { get; private set; }
-
///
/// Initializes a new instance of the class.
///
@@ -500,8 +498,6 @@ namespace Emby.Server.Implementations
HttpsPort = ServerConfiguration.DefaultHttpsPort;
}
- JsonSerializer = new JsonSerializer();
-
if (Plugins != null)
{
var pluginBuilder = new StringBuilder();
@@ -568,7 +564,7 @@ namespace Emby.Server.Implementations
serviceCollection.AddSingleton(ApplicationPaths);
- serviceCollection.AddSingleton(JsonSerializer);
+ serviceCollection.AddSingleton();
// TODO: Remove support for injecting ILogger completely
serviceCollection.AddSingleton((provider) =>
@@ -813,7 +809,7 @@ namespace Emby.Server.Implementations
private void SetStaticProperties()
{
// For now there's no real way to inject these properly
- BaseItem.Logger = LoggerFactory.CreateLogger("BaseItem");
+ BaseItem.Logger = Resolve>();
BaseItem.ConfigurationManager = ServerConfigurationManager;
BaseItem.LibraryManager = Resolve();
BaseItem.ProviderManager = Resolve();
@@ -829,7 +825,7 @@ namespace Emby.Server.Implementations
UserView.CollectionManager = Resolve();
BaseItem.MediaSourceManager = Resolve();
CollectionFolder.XmlSerializer = XmlSerializer;
- CollectionFolder.JsonSerializer = JsonSerializer;
+ CollectionFolder.JsonSerializer = Resolve();
CollectionFolder.ApplicationHost = this;
AuthenticatedAttribute.AuthService = Resolve();
}