2 implementations of IRazorPage
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPageBase.cs (1)
25
public abstract class RazorPageBase :
IRazorPage
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\RazorPageAdapter.cs (1)
15
public class RazorPageAdapter :
IRazorPage
, IModelTypeProvider
68 references to IRazorPage
Microsoft.AspNetCore.Mvc.Razor (61)
Compilation\DefaultRazorPageFactoryProvider.cs (2)
45
var pathProperty = viewType.GetProperty(nameof(
IRazorPage
.Path))!;
52
.Lambda<Func<
IRazorPage
>>(objectInitializeExpression)
Diagnostics\MvcDiagnostics.cs (6)
30
public BeforeViewPageEventData(
IRazorPage
page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext)
39
/// The <see cref="
IRazorPage
"/>.
41
public
IRazorPage
Page { get; }
91
public AfterViewPageEventData(
IRazorPage
page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext)
100
/// The <see cref="
IRazorPage
"/>.
102
public
IRazorPage
Page { get; }
IRazorPageActivator.cs (2)
9
/// Provides methods to activate properties on a <see cref="
IRazorPage
"/> instance.
18
void 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)
14
IRazorPage
page,
26
IRazorPage
page,
44
IRazorPage
page,
56
IRazorPage
page,
RazorPageActivator.cs (2)
58
public void Activate(
IRazorPage
page, ViewContext context)
67
internal RazorPagePropertyActivator GetOrAddCacheEntry(
IRazorPage
page)
RazorPageFactoryResult.cs (5)
16
/// specified <see cref="
IRazorPage
"/> factory.
18
/// <param name="razorPageFactory">The <see cref="
IRazorPage
"/> factory.</param>
22
Func<
IRazorPage
>? razorPageFactory)
29
/// The <see cref="
IRazorPage
"/> factory.
32
public 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>
16
public RazorPageResult(string name,
IRazorPage
page)
47
/// Gets the <see cref="
IRazorPage
"/> if found.
50
public
IRazorPage
? Page { get; }
RazorView.cs (22)
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>
40
IReadOnlyList<
IRazorPage
> viewStartPages,
41
IRazorPage
razorPage,
64
/// Gets <see cref="
IRazorPage
"/> instance that the views executes on.
66
public
IRazorPage
RazorPage { get; }
69
/// Gets the sequence of _ViewStart <see cref="
IRazorPage
"/> instances that are executed by this view.
71
public IReadOnlyList<
IRazorPage
> ViewStartPages { get; }
73
internal Action<
IRazorPage
, ViewContext>? OnAfterPageActivated { get; set; }
90
IRazorPage
page,
138
private async Task RenderPageCoreAsync(
IRazorPage
page, ViewContext context)
165
var
viewStart = ViewStartPages[i];
194
private static bool ContainsLayout(List<
IRazorPage
> renderedLayouts, string path)
196
foreach (
var
layout in renderedLayouts)
213
var
previousPage = RazorPage;
214
List<
IRazorPage
>? renderedLayouts = null;
232
var
layoutPage = GetLayoutPage(context, previousPage.Path, previousPage.Layout);
249
(renderedLayouts ??= new List<
IRazorPage
>()).Add(layoutPage);
258
foreach (
var
layoutPage in renderedLayouts)
284
private
IRazorPage
GetLayoutPage(ViewContext context, string executingFilePath, string layoutPath)
312
var
layoutPage = layoutPageResult.Page;
RazorViewEngine.cs (5)
121
var
razorPage = cacheResult.ViewEntry.PageFactory();
144
var
razorPage = cacheResult.ViewEntry.PageFactory();
462
var
page = result.ViewEntry.PageFactory();
465
var viewStarts = viewStartEntries.Count == 0 ? Array.Empty<
IRazorPage
>() : new
IRazorPage
[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>
16
public ViewLocationCacheItem(Func<
IRazorPage
> razorPageFactory, string location)
23
/// Gets the application relative path of the <see cref="
IRazorPage
"/>
28
/// Gets the <see cref="
IRazorPage
"/> factory.
30
public Func<
IRazorPage
> PageFactory { get; }
Microsoft.AspNetCore.Mvc.RazorPages (7)
Infrastructure\PageActionInvokerCache.cs (2)
113
internal List<Func<
IRazorPage
>> GetViewStartFactories(CompiledPageActionDescriptor descriptor)
115
var viewStartFactories = new List<Func<
IRazorPage
>>();
Infrastructure\PageActionInvokerCacheEntry.cs (2)
24
IReadOnlyList<Func<
IRazorPage
>> viewStartFactories,
71
public IReadOnlyList<Func<
IRazorPage
>> ViewStartFactories { get; }
Infrastructure\PageResultExecutor.cs (1)
63
var viewStarts = new
IRazorPage
[pageContext.ViewStartFactories.Count];
PageContext.cs (2)
22
private IList<Func<
IRazorPage
>>? _viewStartFactories;
112
public virtual IList<Func<
IRazorPage
>> ViewStartFactories