Esempio n. 1
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     UnityRegistration.InitializeAopContainer();
     _ = log4net.Config.XmlConfigurator.Configure();
 }
Esempio n. 2
0
        protected void Application_Start(object sender, EventArgs e)
        {
            UnityRegistration.InitializeAopContainer();
            string configFile = AppUtil.GetAppSettings(AspectEnums.ConfigKeys.SchedulerConfigFile);

            log4net.Config.XmlConfigurator.Configure();
            //XmlApplicationContext context = new XmlApplicationContext(Server.MapPath(configFile));
            // Stream stream = HttpContext.Current.Request.InputStream;
            // RouteTable.Routes.Add(new ServiceRoute("api", new CorsEnabledServiceHostFactory(), typeof(ValuesService)));
        }
Esempio n. 3
0
        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);
            XmlConfigurator.Configure();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            UnityRegistration.InitializeAopContainer();
            string configFile = AppUtil.GetAppSettings(AspectEnums.ConfigKeys.SchedulerConfigFile);

            _ = XmlConfigurator.Configure();
            GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
        }
Esempio n. 4
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            UnityRegistration.InitializeAopContainer();
            string configFile = AppUtil.GetAppSettings(AspectEnums.ConfigKeys.SchedulerConfigFile);

            log4net.Config.XmlConfigurator.Configure();
        }
Esempio n. 5
0
        protected void Application_Start()
        {
            // Database.SetInitializer<AccuIT.PresentationLayer.WebAdmin.CRMBizzEntities>(null);
            AreaRegistration.RegisterAllAreas();
            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            //AuthConfig.RegisterOpenAuth();
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            UnityRegistration.InitializeAopContainer();
            string configFile = AppUtil.GetAppSettings(AspectEnums.ConfigKeys.SchedulerConfigFile);

            log4net.Config.XmlConfigurator.Configure();
        }