The Free Software Media System - Server Backend & API
Merge branch 'master' into activitydb-efcore
Patrick Barrona8f0d0aa0dfe
diff --cc Emby.Server.Implementations/ApplicationHost.csindex ddd9c79533,61e3faf5c0..371b5a5b9b--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@@ -547,20 -545,6 +547,13 @@@ namespace Emby.Server.ImplementationserviceCollection.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;- });-+ // TODO: properly set up scoping and switch to AddDbContextPool+ serviceCollection.AddDbContext<JellyfinDb>(+ options => options.UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}"),+ ServiceLifetime.Transient);++ serviceCollection.AddSingleton<JellyfinDbProvider>();+serviceCollection.AddSingleton(_fileSystemManager);serviceCollection.AddSingleton<TvdbClientManager>();