示例#1
0
        protected void Application_Start()
        {
            // Removing WebForms view engine.
            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorViewEngine()
            {
                FileExtensions = new string[] { "cshtml" }
            });

            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            CleanerConfig.RegisterCleaner();
        }
示例#2
0
 public static void RegisterCleaner()
 {
     Instance = new CleanerConfig();
 }