protected void Application_Start() { log4net.Config.XmlConfigurator.Configure(); AssemblyConfig.InitWebAssembly(); ValueProviderFactories.Factories.Add(new QueryParamProviderFactory()); AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
/// <summary> /// /// </summary> protected void Application_Start() { //log4net.Config.XmlConfigurator.Configure(); log.Info("Pxin Start"); AssemblyConfig.InitWebAssembly(); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); CurrencyConfig.Register(); var TimeServiceStart = System.Configuration.ConfigurationManager.AppSettings["TimeServiceStart"]; if (string.IsNullOrEmpty(TimeServiceStart) || TimeServiceStart == "1") { PxinSerivce.Register(); } }