Esempio n. 1
0
        protected void Page(object sender, EventArgs e)
        {
            Exception exc = Server.GetLastError();

            ExceptionMVCLogger.LogException(exc, "App_Error");
            Server.ClearError();
        }
Esempio n. 2
0
 protected void Application_AuthenticateRequest()
 {
     try
     {
         if (GameHelper.Initialized == false)
         {
             Starter.Start();
             Persistent.Init();
             Game_Start();
         }
     }
     catch (Exception e)
     {
         ExceptionMVCLogger.LogException(e, "Start");
         throw;
     }
 }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
        protected void Application_Error(object sender, EventArgs e)
        {
            Exception exc = Server.GetLastError();

            ExceptionMVCLogger.LogException(exc, "App_Error");
        }