void Application_Start(object sender, EventArgs e) { ServicePointManager.ServerCertificateValidationCallback = (sender1, certificate, chain, sslPolicyErrors) => true; CLogManager.Init(); //CLogManager.Init(); // Code that runs on application startup }
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(); }
protected void Application_Start(object sender, EventArgs e) { CLogManager.Init(); }