The Free Software Media System - Server Backend & API
Merge remote-tracking branch 'upstream/release-10.2.z' into newmaser
Bond-009a35ea49c996d
diff --cc Emby.Server.Implementations/ApplicationHost.csindex 784486d524,3538244064..9d4fd95a0f--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@@ -623,64 -736,63 +623,64 @@@ namespace Emby.Server.Implementation/// <summary>/// Registers resources that classes will depend on/// </summary>- protected async Task RegisterResources()+ protected async Task RegisterResources(IServiceCollection serviceCollection){- RegisterSingleInstance(ConfigurationManager);- RegisterSingleInstance<IApplicationHost>(this);+ serviceCollection.AddSingleton(ConfigurationManager);+ serviceCollection.AddSingleton<IApplicationHost>(this);- RegisterSingleInstance<IApplicationPaths>(ApplicationPaths);+ serviceCollection.AddSingleton<IApplicationPaths>(ApplicationPaths);- RegisterSingleInstance(JsonSerializer);- RegisterSingleInstance(LoggerFactory, false);- RegisterSingleInstance(Logger);+ serviceCollection.AddSingleton(JsonSerializer);- RegisterSingleInstance(EnvironmentInfo);+ serviceCollection.AddSingleton(LoggerFactory);+ serviceCollection.AddLogging();+ serviceCollection.AddSingleton(Logger);- RegisterSingleInstance(FileSystemManager);+ serviceCollection.AddSingleton(EnvironmentInfo);++ serviceCollection.AddSingleton(FileSystemManager);HttpClient = CreateHttpClient();- RegisterSingleInstance(HttpClient);+ serviceCollection.AddSingleton(HttpClient);- RegisterSingleInstance(NetworkManager);+ serviceCollection.AddSingleton(NetworkManager);IsoManager = new IsoManager();- RegisterSingleInstance(IsoManager);+ serviceCollection.AddSingleton(IsoManager);TaskManager = new TaskManager(ApplicationPaths, JsonSerializer, LoggerFactory, FileSystemManager);- RegisterSingleInstance(TaskManager);+ serviceCollection.AddSingleton(TaskManager);- RegisterSingleInstance(XmlSerializer);+ serviceCollection.AddSingleton(XmlSerializer);ProcessFactory = new ProcessFactory();- RegisterSingleInstance(ProcessFactory);+ serviceCollection.AddSingleton(ProcessFactory);- var streamHelper = CreateStreamHelper();- ApplicationHost.StreamHelper = streamHelper;- RegisterSingleInstance(streamHelper);+ ApplicationHost.StreamHelper = new StreamHelper();+ serviceCollection.AddSingleton(StreamHelper);- RegisterSingleInstance(CryptographyProvider);+ serviceCollection.AddSingleton(CryptographyProvider);SocketFactory = new SocketFactory();- RegisterSingleInstance(SocketFactory);-- ZipClient = new ZipClient(FileSystemManager);- RegisterSingleInstance(ZipClient);+ serviceCollection.AddSingleton(SocketFactory);- InstallationManager = new InstallationManager(LoggerFactory, this, ApplicationPaths, HttpClient, JsonSerializer, ServerConfigurationManager, FileSystemManager, CryptographyProvider, PackageRuntime);+ InstallationManager = new InstallationManager(LoggerFactory, this, ApplicationPaths, HttpClient, JsonSerializer, ServerConfigurationManager, FileSystemManager, CryptographyProvider, ZipClient, PackageRuntime);- RegisterSingleInstance(InstallationManager);+ serviceCollection.AddSingleton(InstallationManager);++ ZipClient = new ZipClient(FileSystemManager);+ serviceCollection.AddSingleton(ZipClient);HttpResultFactory = new HttpResultFactory(LoggerFactory, FileSystemManager, JsonSerializer, CreateBrotliCompressor());- RegisterSingleInstance(HttpResultFactory);+ serviceCollection.AddSingleton(HttpResultFactory);- RegisterSingleInstance<IServerApplicationHost>(this);- RegisterSingleInstance<IServerApplicationPaths>(ApplicationPaths);+ serviceCollection.AddSingleton<IServerApplicationHost>(this);+ serviceCollection.AddSingleton<IServerApplicationPaths>(ApplicationPaths);- RegisterSingleInstance(ServerConfigurationManager);+ serviceCollection.AddSingleton(ServerConfigurationManager);- IAssemblyInfo assemblyInfo = new AssemblyInfo();- RegisterSingleInstance(assemblyInfo);+ var assemblyInfo = new AssemblyInfo();+ serviceCollection.AddSingleton<IAssemblyInfo>(assemblyInfo);LocalizationManager = new LocalizationManager(ServerConfigurationManager, FileSystemManager, JsonSerializer, LoggerFactory);await LocalizationManager.LoadAll();diff --cc MediaBrowser.WebDashboard/jellyfin-webindex c7ce1ac8ec,f7e5946c79..b4842e325e--- a/MediaBrowser.WebDashboard/jellyfin-web+++ b/MediaBrowser.WebDashboard/jellyfin-web@@@ -1,1 -1,1 +1,1 @@@- Subproject commit c7ce1ac8eccd50f1bd759b30fbe60ea797ffe86e-Subproject commit f7e5946c79728c6ac8956c9dd4305afa4190402c++Subproject commit b4842e325e9d7d708193b4a27060cfe4c978df5e