// 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.Rendering; using Microsoft.Framework.Internal; 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([NotNull] IRazorViewEngine viewEngine, [NotNull] IRazorPage page, bool isPartial); } }