IISExpress is now attached to NZBDrone.exe earlier, which means it should almost have a garanteed termination as soon as the host is killed.

Console logging starts earlier in the app.
Moved Default profiles to QualityProvider.
This commit is contained in:
kay.one 2011-06-12 20:45:22 -07:00
commit 8686eb5d32
6 changed files with 63 additions and 67 deletions

View file

@ -36,9 +36,6 @@ namespace NzbDrone.Web
{
base.OnApplicationStarted();
Logger.Info("NZBDrone Starting up.");
CentralDispatch.DedicateToHost();
RegisterRoutes(RouteTable.Routes);
//base.OnApplicationStarted();
AreaRegistration.RegisterAllAreas();
@ -48,6 +45,10 @@ namespace NzbDrone.Web
protected override IKernel CreateKernel()
{
LogConfiguration.Setup();
Logger.Info("NZBDrone Starting up.");
CentralDispatch.DedicateToHost();
var kernel = CentralDispatch.NinjectKernel;
// kernel.Bind<IRepository>().ToConstant(kernel.Get<IRepository>("LogDb"));