Added progress reporting to kernel.init

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-11 15:49:45 -04:00
parent c3d835cfc5
commit 00545b5543
2 changed files with 21 additions and 8 deletions

View File

@@ -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();
}