update entry point runner
This commit is contained in:
parent
24592a2b0a
commit
2561b29cba
|
@ -330,18 +330,21 @@ namespace MediaBrowser.Server.Startup.Common
|
|||
HttpServer.GlobalResponse = null;
|
||||
|
||||
PerformPostInitMigrations();
|
||||
Logger.Info("Post-init migrations complete");
|
||||
|
||||
Parallel.ForEach(GetExports<IServerEntryPoint>(), entryPoint =>
|
||||
foreach (var entryPoint in GetExports<IServerEntryPoint>().ToList())
|
||||
{
|
||||
var name = entryPoint.GetType().FullName;
|
||||
try
|
||||
{
|
||||
entryPoint.Run();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.ErrorException("Error in {0}", ex, entryPoint.GetType().FullName);
|
||||
Logger.ErrorException("Error in {0}", ex, name);
|
||||
}
|
||||
});
|
||||
}
|
||||
Logger.Info("Entry points complete");
|
||||
|
||||
LogManager.RemoveConsoleOutput();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user