Пример #1
0
        /// <summary>
        /// Will run when the application is starting (same as Application_Start)
        /// Called by the assembly PreApplicationStartMethod attribute.
        /// </summary>
        public static void PreInit()
        {
            //CALL BASE REGISTERATION
            RegisterStartup();

            //REGISTER CLASSIC MVC ROUTES IF APPLICABLE
            if (AppSettings.Get <bool>(Constants.KEY_MVC_ENABLE_CLASSIC_ROUTES))
            {
                RouteConfig.RegisterAll(RouteTable.Routes);
            }

            //SUBSCRIBE TO SITEFINITY BOOTSTRAP EVENTS
            Bootstrapper.Initializing += OnBootstrapperInitializing;
            Bootstrapper.Initialized  += OnBootstrapperInitialized;
        }