2 implementations of IRazorPage
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPageBase.cs (1)
25public abstract class RazorPageBase : IRazorPage
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\RazorPageAdapter.cs (1)
15public class RazorPageAdapter : IRazorPage, IModelTypeProvider
64 references to IRazorPage
Microsoft.AspNetCore.Mvc.Razor (57)
Compilation\DefaultRazorPageFactoryProvider.cs (2)
45var pathProperty = viewType.GetProperty(nameof(IRazorPage.Path))!; 52.Lambda<Func<IRazorPage>>(objectInitializeExpression)
Diagnostics\MvcDiagnostics.cs (6)
30public BeforeViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 39/// The <see cref="IRazorPage"/>. 41public IRazorPage Page { get; } 91public AfterViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 100/// The <see cref="IRazorPage"/>. 102public IRazorPage Page { get; }
IRazorPageActivator.cs (2)
9/// Provides methods to activate properties on a <see cref="IRazorPage"/> instance. 18void Activate(IRazorPage page, ViewContext context);
IRazorPageFactoryProvider.cs (2)
7/// Defines methods that are used for creating <see cref="IRazorPage"/> instances at a given path. 12/// Creates a <see cref="IRazorPage"/> factory for the specified path.
MvcRazorDiagnosticListenerExtensions.cs (4)
14IRazorPage page, 26IRazorPage page, 44IRazorPage page, 56IRazorPage page,
RazorPageActivator.cs (2)
58public void Activate(IRazorPage page, ViewContext context) 67internal RazorPagePropertyActivator GetOrAddCacheEntry(IRazorPage page)
RazorPageFactoryResult.cs (5)
16/// specified <see cref="IRazorPage"/> factory. 18/// <param name="razorPageFactory">The <see cref="IRazorPage"/> factory.</param> 22Func<IRazorPage>? razorPageFactory) 29/// The <see cref="IRazorPage"/> factory. 32public Func<IRazorPage>? RazorPageFactory { get; }
RazorPageResult.cs (5)
7/// Result of locating a <see cref="IRazorPage"/>. 15/// <param name="page">The located <see cref="IRazorPage"/>.</param> 16public RazorPageResult(string name, IRazorPage page) 47/// Gets the <see cref="IRazorPage"/> if found. 50public IRazorPage? Page { get; }
RazorView.cs (19)
15/// Default implementation for <see cref="IView"/> that executes one or more <see cref="IRazorPage"/> 32/// <param name="viewStartPages">The sequence of <see cref="IRazorPage" /> instances executed as _ViewStarts. 34/// <param name="razorPage">The <see cref="IRazorPage"/> instance to execute.</param> 40IReadOnlyList<IRazorPage> viewStartPages, 41IRazorPage razorPage, 64/// Gets <see cref="IRazorPage"/> instance that the views executes on. 66public IRazorPage RazorPage { get; } 69/// Gets the sequence of _ViewStart <see cref="IRazorPage"/> instances that are executed by this view. 71public IReadOnlyList<IRazorPage> ViewStartPages { get; } 73internal Action<IRazorPage, ViewContext>? OnAfterPageActivated { get; set; } 90IRazorPage page, 138private async Task RenderPageCoreAsync(IRazorPage page, ViewContext context) 165var viewStart = ViewStartPages[i]; 200var previousPage = RazorPage; 201var renderedLayouts = new List<IRazorPage>(); 219var layoutPage = GetLayoutPage(context, previousPage.Path, previousPage.Layout); 244foreach (var layoutPage in renderedLayouts) 269private IRazorPage GetLayoutPage(ViewContext context, string executingFilePath, string layoutPath) 297var layoutPage = layoutPageResult.Page;
RazorViewEngine.cs (4)
121var razorPage = cacheResult.ViewEntry.PageFactory(); 144var razorPage = cacheResult.ViewEntry.PageFactory(); 462var page = result.ViewEntry.PageFactory(); 464var viewStarts = new IRazorPage[result.ViewStartEntries!.Count];
ViewLocationCacheItem.cs (6)
14/// <param name="razorPageFactory">The <see cref="IRazorPage"/> factory.</param> 15/// <param name="location">The application relative path of the <see cref="IRazorPage"/>.</param> 16public ViewLocationCacheItem(Func<IRazorPage> razorPageFactory, string location) 23/// Gets the application relative path of the <see cref="IRazorPage"/> 28/// Gets the <see cref="IRazorPage"/> factory. 30public Func<IRazorPage> PageFactory { get; }
Microsoft.AspNetCore.Mvc.RazorPages (7)
Infrastructure\PageActionInvokerCache.cs (2)
113internal List<Func<IRazorPage>> GetViewStartFactories(CompiledPageActionDescriptor descriptor) 115var viewStartFactories = new List<Func<IRazorPage>>();
Infrastructure\PageActionInvokerCacheEntry.cs (2)
24IReadOnlyList<Func<IRazorPage>> viewStartFactories, 71public IReadOnlyList<Func<IRazorPage>> ViewStartFactories { get; }
Infrastructure\PageResultExecutor.cs (1)
63var viewStarts = new IRazorPage[pageContext.ViewStartFactories.Count];
PageContext.cs (2)
22private IList<Func<IRazorPage>>? _viewStartFactories; 112public virtual IList<Func<IRazorPage>> ViewStartFactories