protected void Page(object sender, EventArgs e) { Exception exc = Server.GetLastError(); ExceptionMVCLogger.LogException(exc, "App_Error"); Server.ClearError(); }
protected void Application_AuthenticateRequest() { try { if (GameHelper.Initialized == false) { Starter.Start(); Persistent.Init(); Game_Start(); } } catch (Exception e) { ExceptionMVCLogger.LogException(e, "Start"); throw; } }
protected void Application_Start() { try { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); configureViewEngines(); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); #if !DEBUG Persistent.Init(); Game_Start(); #endif Starter.Start(); NinjectHangFire.CreateKernel(); } catch (Exception e) { ExceptionMVCLogger.LogException(e, "Start"); throw; } }
protected void Application_Error(object sender, EventArgs e) { Exception exc = Server.GetLastError(); ExceptionMVCLogger.LogException(exc, "App_Error"); }