mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 20:54:20 +01:00
created an init method on base app host
This commit is contained in:
@@ -165,6 +165,7 @@ namespace MediaBrowser.ServerApplication
|
||||
protected async void LoadKernel()
|
||||
{
|
||||
CompositionRoot = new ApplicationHost();
|
||||
await CompositionRoot.Init();
|
||||
|
||||
Logger = CompositionRoot.Logger;
|
||||
Kernel = CompositionRoot.Kernel;
|
||||
|
||||
@@ -78,6 +78,16 @@ namespace MediaBrowser.ServerApplication
|
||||
public ApplicationHost()
|
||||
: base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inits this instance.
|
||||
/// </summary>
|
||||
/// <returns>Task.</returns>
|
||||
public override async Task Init()
|
||||
{
|
||||
await base.Init().ConfigureAwait(false);
|
||||
|
||||
Kernel = new Kernel(this, ServerApplicationPaths, _xmlSerializer, Logger);
|
||||
|
||||
var networkManager = new NetworkManager();
|
||||
|
||||
Reference in New Issue
Block a user