-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Global.asax.cs
34 lines (28 loc) · 988 Bytes
/
Global.asax.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace HyperVAdmin
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
#pragma warning disable 1591
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
// Removing all the view engines
ViewEngines.Engines.Clear();
//Add Razor Engine (which we are using)
ViewEngines.Engines.Add(new ViewEngine());
MvcHandler.DisableMvcResponseHeader = true;
}
protected void Application_EndRequest()
{
// removing excessive headers. They don't need to see this.
Response.Headers.Remove("Server");
}
}
#pragma warning restore 1591
}