// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Mvc.ViewEngines; namespace Microsoft.AspNet.Mvc.Razor { /// /// Defines methods to create instances with a given . /// public interface IRazorViewFactory { /// /// Creates a providing it with the to execute. /// /// The that was used to locate Layout pages /// that will be part of 's execution. /// The instance to execute. /// Determines if the view is to be executed as a partial. /// A instance that renders the contents of the IView GetView(IRazorViewEngine viewEngine, IRazorPage page, bool isPartial); } }