2 interfaces inheriting from IViewEngine
Microsoft.AspNetCore.Mvc.Razor (1)
IRazorViewEngine.cs (1)
11public interface IRazorViewEngine : IViewEngine
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewEngines\ICompositeViewEngine.cs (1)
11public interface ICompositeViewEngine : IViewEngine
1 implementation of IViewEngine
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewEngines\CompositeViewEngineTest.cs (1)
431private class TestViewEngine : IViewEngine
88 references to IViewEngine
Microsoft.AspNetCore.Mvc.Razor (3)
IRazorViewEngine.cs (3)
9/// An <see cref="IViewEngine"/> used to render pages that use the Razor syntax. 23/// <seealso cref="IViewEngine.FindView"/>. 34/// <remarks><seealso cref="IViewEngine.GetView"/>.</remarks>
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
35var viewEngine = Assert.Single(options.ViewEngines);
Microsoft.AspNetCore.Mvc.ViewFeatures (26)
MvcViewOptions.cs (3)
37/// Gets a list <see cref="IViewEngine"/>s used by this application. 39public IList<IViewEngine> ViewEngines { get; } = new List<IViewEngine>();
PartialViewResult.cs (2)
48/// Gets or sets the <see cref="IViewEngine"/> used to locate views. 52public IViewEngine? ViewEngine { get; set; }
PartialViewResultExecutor.cs (1)
66var viewEngine = viewResult.ViewEngine ?? ViewEngine;
TemplateBuilder.cs (2)
16private readonly IViewEngine _viewEngine; 29IViewEngine viewEngine,
TemplateRenderer.cs (2)
71private readonly IViewEngine _viewEngine; 79IViewEngine viewEngine,
ViewComponents\ViewViewComponentResult.cs (3)
44public IViewEngine? ViewEngine { get; set; } 72var viewEngine = ViewEngine ?? ResolveViewEngine(context); 129private static IViewEngine ResolveViewEngine(ViewComponentContext context)
ViewEngines\CompositeViewEngine.cs (3)
25public IReadOnlyList<IViewEngine> ViewEngines { get; } 38typeof(IViewEngine).FullName)); 87typeof(IViewEngine).FullName));
ViewEngines\ICompositeViewEngine.cs (3)
9/// Represents an <see cref="IViewEngine"/> that delegates to one of a collection of view engines. 14/// Gets the list of <see cref="IViewEngine"/> this instance of <see cref="ICompositeViewEngine"/> delegates 17IReadOnlyList<IViewEngine> ViewEngines { get; }
ViewEngines\IView.cs (1)
16/// Gets the path of the view as resolved by the <see cref="IViewEngine"/>.
ViewEngines\ViewEngineResult.cs (1)
13/// Represents the result of an <see cref="IViewEngine" />.
ViewExecutor.cs (2)
87/// Gets the default <see cref="IViewEngine"/>. 89protected IViewEngine ViewEngine { get; }
ViewResult.cs (2)
48/// Gets or sets the <see cref="IViewEngine"/> used to locate views. 52public IViewEngine? ViewEngine { get; set; }
ViewResultExecutor.cs (1)
66var viewEngine = viewResult.ViewEngine ?? ViewEngine;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (58)
PartialViewResultExecutorTest.cs (5)
109var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 144var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 179var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 250var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 348var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict);
PartialViewResultTest.cs (4)
72var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 110var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 150var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 199var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict);
ViewComponents\ViewViewComponentResultTest.cs (9)
34var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 73var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 107var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 152var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 190var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 230var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 268var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 304var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 388var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict);
ViewEngines\CompositeViewEngineTest.cs (31)
18var viewEngine1 = Mock.Of<IViewEngine>(); 19var viewEngine2 = Mock.Of<IViewEngine>(); 37$"empty. At least one '{typeof(IViewEngine).FullName}' is required to locate a view for rendering."; 54var engine = new Mock<IViewEngine>(MockBehavior.Strict); 75var engine = new Mock<IViewEngine>(MockBehavior.Strict); 97var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 98var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 99var engine3 = new Mock<IViewEngine>(MockBehavior.Strict); 132var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 133var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 134var engine3 = new Mock<IViewEngine>(MockBehavior.Strict); 166$"empty. At least one '{typeof(IViewEngine).FullName}' is required to locate a view for rendering."; 186var engine = new Mock<IViewEngine>(MockBehavior.Strict); 210var engine = new Mock<IViewEngine>(MockBehavior.Strict); 235var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 236var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 237var engine3 = new Mock<IViewEngine>(MockBehavior.Strict); 273var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 274var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 275var engine3 = new Mock<IViewEngine>(MockBehavior.Strict); 305$"empty. At least one '{typeof(IViewEngine).FullName}' is required to locate a view for rendering."; 321var engine = new Mock<IViewEngine>(MockBehavior.Strict); 342var engine = new Mock<IViewEngine>(MockBehavior.Strict); 364var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 365var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 366var engine3 = new Mock<IViewEngine>(MockBehavior.Strict); 399var engine1 = new Mock<IViewEngine>(MockBehavior.Strict); 400var engine2 = new Mock<IViewEngine>(MockBehavior.Strict); 401var engine3 = new Mock<IViewEngine>(MockBehavior.Strict);
ViewResultExecutorTest.cs (5)
108var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 142var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 176var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 246var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 338var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict);
ViewResultTest.cs (4)
82var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 122var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 162var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict); 211var viewEngine = new Mock<IViewEngine>(MockBehavior.Strict);