/// <summary>
        /// Creates a view by using the specified controller context and the paths of the view and master view.
        /// </summary>
        /// <param name="controllerContext">The controller context.</param>
        /// <param name="viewPath">The path to the view.</param>
        /// <param name="masterPath">The path to the master view.</param>
        /// <returns>The view.</returns>
        protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
        {
            var view = new LocalizationRazorView(
                controllerContext,
                viewPath,
                layoutPath: masterPath,
                runViewStartPages: true,
                viewStartFileExtensions: this.ViewStartFileExtensions);

            return view;
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a view by using the specified controller context and the paths of the view and master view.
        /// </summary>
        /// <param name="controllerContext">The controller context.</param>
        /// <param name="viewPath">The path to the view.</param>
        /// <param name="masterPath">The path to the master view.</param>
        /// <returns>The view.</returns>
        protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
        {
            var view = new LocalizationRazorView(
                controllerContext,
                viewPath,
                layoutPath: masterPath,
                runViewStartPages: true,
                viewStartFileExtensions: this.ViewStartFileExtensions);

            return(view);
        }