mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
IISExpress now runs in above normal priority
WebFroms view is removed from view registration
This commit is contained in:
parent
cfd42049e5
commit
3d33606d7e
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Data.Common;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
@ -41,6 +42,11 @@ protected override void OnApplicationStarted()
|
||||
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.");
|
||||
|
@ -71,6 +71,8 @@ internal static Process StartServer()
|
||||
IISProcess.BeginErrorReadLine();
|
||||
IISProcess.BeginOutputReadLine();
|
||||
|
||||
IISProcess.PriorityClass = ProcessPriorityClass.AboveNormal;
|
||||
|
||||
//Start Ping
|
||||
_pingTimer = new Timer(300000) { AutoReset = true };
|
||||
_pingTimer.Elapsed += (PingServer);
|
||||
|
Loading…
Reference in New Issue
Block a user