|
|
@ -570,8 +570,12 @@ namespace Emby.Server.Implementations
|
|
|
|
|
|
|
|
|
|
|
|
serviceCollection.AddSingleton(JsonSerializer);
|
|
|
|
serviceCollection.AddSingleton(JsonSerializer);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Support for injecting ILogger should be deprecated in favour of ILogger<T> and this removed
|
|
|
|
// TODO: Remove support for injecting ILogger completely
|
|
|
|
serviceCollection.AddSingleton<ILogger>(Logger);
|
|
|
|
serviceCollection.AddSingleton((provider) =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Logger.LogWarning("Injecting ILogger directly is deprecated and should be replaced with ILogger<T>");
|
|
|
|
|
|
|
|
return Logger;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
serviceCollection.AddSingleton(FileSystemManager);
|
|
|
|
serviceCollection.AddSingleton(FileSystemManager);
|
|
|
|
serviceCollection.AddSingleton<TvdbClientManager>();
|
|
|
|
serviceCollection.AddSingleton<TvdbClientManager>();
|
|
|
|