Exemple #1
0
 void Application_Start(object sender, EventArgs e)
 {
     ServicePointManager.ServerCertificateValidationCallback = (sender1, certificate, chain, sslPolicyErrors) => true;
     CLogManager.Init();
     //CLogManager.Init();
     // Code that runs on application startup
 }
Exemple #2
0
        public static void RegisterRoutes(RouteCollection routes)
        {
            RouteTable.Routes.Ignore("{resource}.axd/{*pathInfo}");
            routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));

            routes.MapPageRoute("mods", "{modname}/{pagename}", "~/Mods/{modname}/{pagename}.aspx");
            routes.MapPageRoute("modsQuery", "{modname}/{pagename}/{query}", "~/Mods/{modname}/{pagename}.aspx");
            CLogManager.Init();
        }
Exemple #3
0
 protected void Application_Start(object sender, EventArgs e)
 {
     CLogManager.Init();
 }