Remove support for injecting ILogger directly

This commit is contained in:
Patrick Barron
2020-05-12 16:03:15 -04:00
parent 32c1182226
commit 62420a6eb1
8 changed files with 40 additions and 34 deletions

View File

@@ -546,13 +546,6 @@ namespace Emby.Server.Implementations
serviceCollection.AddSingleton<IJsonSerializer, JsonSerializer>();
// TODO: Remove support for injecting ILogger completely
serviceCollection.AddSingleton((provider) =>
{
Logger.LogWarning("Injecting ILogger directly is deprecated and should be replaced with ILogger<T>");
return Logger;
});
serviceCollection.AddSingleton(_fileSystemManager);
serviceCollection.AddSingleton<TvdbClientManager>();