From 88d5014a3163364a2ab36bf6dd2bd83f67bec538 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Wed, 19 Mar 2014 17:40:35 -0400 Subject: [PATCH] reformat AppHost --- src/SocialBootstrapApi/Global.asax.cs | 70 +++++++++++++-------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/SocialBootstrapApi/Global.asax.cs b/src/SocialBootstrapApi/Global.asax.cs index 2f32f8e..66d0147 100644 --- a/src/SocialBootstrapApi/Global.asax.cs +++ b/src/SocialBootstrapApi/Global.asax.cs @@ -9,32 +9,32 @@ namespace SocialBootstrapApi { - // Note: For instructions on enabling IIS6 or IIS7 classic mode, - // visit http://go.microsoft.com/?LinkId=9394801 + // Note: For instructions on enabling IIS6 or IIS7 classic mode, + // visit http://go.microsoft.com/?LinkId=9394801 - public class MvcApplication : System.Web.HttpApplication - { - public static void RegisterGlobalFilters(GlobalFilterCollection filters) - { - filters.Add(new HandleErrorAttribute()); - } + public class MvcApplication : System.Web.HttpApplication + { + public static void RegisterGlobalFilters(GlobalFilterCollection filters) + { + filters.Add(new HandleErrorAttribute()); + } - public static void RegisterRoutes(RouteCollection routes) - { - routes.IgnoreRoute("Content/{*pathInfo}"); - routes.IgnoreRoute("api/{*pathInfo}"); - routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + public static void RegisterRoutes(RouteCollection routes) + { + routes.IgnoreRoute("Content/{*pathInfo}"); + routes.IgnoreRoute("api/{*pathInfo}"); + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); - routes.MapRoute( - "Default", // Route name - "{controller}/{action}/{id}", // URL with parameters - new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults - ); + routes.MapRoute( + "Default", // Route name + "{controller}/{action}/{id}", // URL with parameters + new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults + ); - routes.MapRoute("CatchAll", "{*url}", - new { controller = "Home", action = "Index" } - ); - } + routes.MapRoute("CatchAll", "{*url}", + new { controller = "Home", action = "Index" } + ); + } protected void Application_Start() { @@ -51,18 +51,18 @@ protected void Application_Start() new AppHost().Init(); } - protected void Application_BeginRequest(object sender, EventArgs e) - { - Console.WriteLine("Application_BeginRequest"); - - if (Request.IsLocal) - Profiler.Start(); - } + protected void Application_BeginRequest(object sender, EventArgs e) + { + Console.WriteLine("Application_BeginRequest"); - protected void Application_EndRequest(object sender, EventArgs e) - { - Console.WriteLine("Application_EndRequest"); - Profiler.Stop(); - } - } + if (Request.IsLocal) + Profiler.Start(); + } + + protected void Application_EndRequest(object sender, EventArgs e) + { + Console.WriteLine("Application_EndRequest"); + Profiler.Stop(); + } + } } \ No newline at end of file