示例#1
0
        protected void Application_Start()
        {
            using (new PerformanceMonitor())
            {
                TableRegister.Initialize();

                logger.Log("Application Start Called.");

                var  app      = new Admin.Application();
                bool loggedOn = app.LogOn();

                logger.Log("Logged On: {0}".FormatWithCulture(loggedOn));

                FederatedAuthentication.ServiceConfigurationCreated += this.OnServiceConfigurationCreated;

                AreaRegistration.RegisterAllAreas();

                Contract.Assume(null != GlobalFilters.Filters);
                RegisterGlobalFilters(GlobalFilters.Filters);

                Contract.Assume(null != RouteTable.Routes);
                RegisterRoutes(RouteTable.Routes);

                logger.Log("Application Started.");
            }
        }
示例#2
0
        /// <summary>
        /// Application Start
        /// </summary>
        protected void Application_Start()
        {
            using (new PerformanceMonitor())
            {
                TableRegister.Initialize();

                logger.Log("Application Start Called.");

                var  app      = new Admin.Application();
                bool loggedOn = app.LogOn();

                logger.Log(string.Format("Logged On: {0}", loggedOn));

                AreaRegistration.RegisterAllAreas();

                WebApiConfig.Register(GlobalConfiguration.Configuration);
                FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
                RouteConfig.RegisterRoutes(RouteTable.Routes);
                BundleConfig.RegisterBundles(BundleTable.Bundles);
                AuthConfig.RegisterAuth();

                logger.Log("Application Started.");
            }
        }