From 3d33606d7e5292bed0f4a9a96d43d9d1972803ad Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 3 Jul 2011 17:19:05 -0700 Subject: [PATCH] IISExpress now runs in above normal priority WebFroms view is removed from view registration --- NzbDrone.Web/Global.asax.cs | 6 ++++++ NzbDrone/IISController.cs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index 56caffc54..7b7d688be 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using System.Data.Common; using System.Reflection; using System.Threading; @@ -41,6 +42,11 @@ namespace NzbDrone.Web RegisterRoutes(RouteTable.Routes); //base.OnApplicationStarted(); AreaRegistration.RegisterAllAreas(); + + var razor =ViewEngines.Engines.Where(e => e.GetType() == typeof (RazorViewEngine)).Single(); + ViewEngines.Engines.Clear(); + ViewEngines.Engines.Add(razor); + RegisterGlobalFilters(GlobalFilters.Filters); Logger.Debug("Fully initialized and ready."); diff --git a/NzbDrone/IISController.cs b/NzbDrone/IISController.cs index 06d4bc99e..1d93b86ee 100644 --- a/NzbDrone/IISController.cs +++ b/NzbDrone/IISController.cs @@ -71,6 +71,8 @@ namespace NzbDrone IISProcess.BeginErrorReadLine(); IISProcess.BeginOutputReadLine(); + IISProcess.PriorityClass = ProcessPriorityClass.AboveNormal; + //Start Ping _pingTimer = new Timer(300000) { AutoReset = true }; _pingTimer.Elapsed += (PingServer);