fixing update for vnext.

This commit is contained in:
kay.one 2013-05-19 17:30:02 -07:00
commit 80c996c216
31 changed files with 279 additions and 175 deletions

View file

@ -2,6 +2,8 @@
using System.Diagnostics;
using System.Reflection;
using NLog;
using NzbDrone.Core.Update;
using NzbDrone.Core.Update.Commands;
namespace NzbDrone
{
@ -42,6 +44,14 @@ namespace NzbDrone
}
var container = MainAppContainerBuilder.BuildContainer();
try
{
container.Resolve<IUpdateService>().Execute(new ApplicationUpdateCommand());
}
catch (Exception e)
{
logger.ErrorException("Application update failed.", e);
}
container.Resolve<Router>().Route(args);
}