mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
Persist the PackageManager on BaseApplicationHost
This commit is contained in:
parent
e15ff541c6
commit
1d51ede060
@ -1,4 +1,6 @@
|
||||
using MediaBrowser.Common.Kernel;
|
||||
using MediaBrowser.Common.Implementations.Updates;
|
||||
using MediaBrowser.Common.Kernel;
|
||||
using MediaBrowser.Common.Updates;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using SimpleInjector;
|
||||
@ -36,6 +38,11 @@ namespace MediaBrowser.Common.Implementations
|
||||
/// </summary>
|
||||
protected readonly Container Container = new Container();
|
||||
|
||||
/// <summary>
|
||||
/// The package manager
|
||||
/// </summary>
|
||||
protected readonly IPackageManager PackageManager = new PackageManager();
|
||||
|
||||
/// <summary>
|
||||
/// Gets assemblies that failed to load
|
||||
/// </summary>
|
||||
|
@ -82,15 +82,13 @@ namespace MediaBrowser.ServerApplication
|
||||
|
||||
var taskManager = new TaskManager(ApplicationPaths, _jsonSerializer, Logger, serverManager);
|
||||
|
||||
var packageManager = new PackageManager();
|
||||
|
||||
LogManager.ReloadLogger(Kernel.Configuration.EnableDebugLevelLogging ? LogSeverity.Debug : LogSeverity.Info);
|
||||
|
||||
Logger.Info("Version {0} initializing", ApplicationVersion);
|
||||
|
||||
var httpServer = ServerFactory.CreateServer(this, ProtobufSerializer, Logger, "Media Browser", "index.html");
|
||||
|
||||
RegisterResources(taskManager, httpServer, networkManager, serverManager, packageManager);
|
||||
RegisterResources(taskManager, httpServer, networkManager, serverManager, PackageManager);
|
||||
|
||||
FindParts(taskManager, httpServer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user