mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Added progress reporting to kernel.init
This commit is contained in:
parent
c3d835cfc5
commit
00545b5543
@@ -45,17 +45,20 @@ namespace MediaBrowser.Common.Kernel
|
||||
|
||||
public BaseKernel()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public virtual void Init(IProgress<TaskProgress> progress)
|
||||
{
|
||||
ReloadLogger();
|
||||
|
||||
progress.Report(new TaskProgress() { Description = "Loading configuration", PercentComplete = 0 });
|
||||
ReloadConfiguration();
|
||||
|
||||
progress.Report(new TaskProgress() { Description = "Starting Http server", PercentComplete = 5 });
|
||||
ReloadHttpServer();
|
||||
|
||||
progress.Report(new TaskProgress() { Description = "Loading Plugins", PercentComplete = 10 });
|
||||
ReloadComposableParts();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user