예제 #1
0
        /// <summary>
        /// Registers the controller so its views and resources can be resolved.
        /// </summary>
        /// <param name="controller">The controller.</param>
        protected virtual void RegisterController(Type controller)
        {
            var controllerStore = new ControllerStore();
            var configManager   = ConfigManager.GetManager();

            using (var modeRegion = new ElevatedConfigModeRegion())
            {
                controllerStore.AddController(controller, configManager);
            }
        }
예제 #2
0
        /// <summary>
        /// Registers the controller so its views and resources can be resolved.
        /// </summary>
        /// <param name="controller">The controller.</param>
        protected virtual void RegisterController(Type controller)
        {
            var controllerStore = new ControllerStore();
            var configManager   = ConfigManager.GetManager();

            using (new ElevatedConfigModeRegion())
            {
                this.RegisterStringResources(controller);
                controllerStore.AddController(controller, configManager);
            }
        }
        /// <summary>
        /// Registers the controller so its views and resources can be resolved.
        /// </summary>
        /// <param name="controller">The controller.</param>
        protected virtual void RegisterController(Type controller)
        {
            var controllerStore = new ControllerStore();
            var configManager = ConfigManager.GetManager();

            using (var modeRegion = new ElevatedConfigModeRegion())
            {
                this.RegisterStringResources(controller);
                controllerStore.AddController(controller, configManager);
            }
        }