Пример #1
0
        public ActionResult ReLoadConfig()
        {
            //重新加载各种配置
            MongoDBConfig.LoadConfig();

            ExcludeUrlConfiguration.LoadConfig();

            UrlGenerateConfig.LoadConfig();

            RedisConfig.LoadConfig();

            SqlDispatcherConfig.LoadConfig();

            //FastDFS.Configuration.FastDFSConfigHelper.LoadConfig();

            BundleConfigManager.RegisterBundles(BundleTable.Bundles);

            string backUrl = Request.UrlReferrer == null?Url.RetechAction("Index") : Request.UrlReferrer.ToString();

            return(Redirect(backUrl));
        }