1 type derived from PageLoader
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageLoader.cs (1)
14
internal sealed class DefaultPageLoader :
PageLoader
35 references to PageLoader
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
PageLoaderMatcherPolicy.cs (6)
13
private
PageLoader
? _loader;
16
/// The <see cref="
PageLoader
"/> service is configured by <c>app.AddRazorPages()</c>.
17
/// If the app is configured as <c>app.AddControllersWithViews().AddRazorRuntimeCompilation()</c>, the <see cref="
PageLoader
"/>
26
public PageLoaderMatcherPolicy(
PageLoader
? loader)
73
_loader ??= httpContext.RequestServices.GetRequiredService<
PageLoader
>();
95
private static async Task ApplyAsyncAwaited(
PageLoader
pageLoader, CandidateSet candidates, Task<CompiledPageActionDescriptor> actionDescriptorTask, int index)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (5)
PageLoaderMatcherPolicyTest.cs (5)
24
var
loader = Mock.Of<
PageLoader
>(p => p.LoadAsync(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()) == Task.FromResult(compiled));
42
var loader = new Mock<
PageLoader
>();
75
var
loader = Mock.Of<
PageLoader
>(p => p.LoadAsync(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()) == loadTask);
Microsoft.AspNetCore.Mvc.RazorPages (7)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (2)
141
services.TryAddSingleton<IPageLoader>(s => s.GetRequiredService<
PageLoader
>());
143
services.TryAddSingleton<
PageLoader
, DefaultPageLoader>();
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (2)
17
private readonly
PageLoader
_loader;
20
public DynamicPageEndpointMatcherPolicy(DynamicPageEndpointSelectorCache selectorCache,
PageLoader
loader, EndpointMetadataComparer comparer)
Infrastructure\IPageLoader.cs (1)
9
[Obsolete("This type is obsolete. Use " + nameof(
PageLoader
) + " instead.")]
Infrastructure\PageActionInvokerProvider.cs (2)
18
private readonly
PageLoader
_pageLoader;
31
PageLoader
pageLoader,
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
77
var loader = new Mock<
PageLoader
>();
103
private
PageLoader
Loader { get; }
Infrastructure\PageActionInvokerProviderTest.cs (15)
39
var
loader = Mock.Of<
PageLoader
>();
93
var
loader = Mock.Of<
PageLoader
>();
160
var
loader = Mock.Of<
PageLoader
>();
208
var
loader = Mock.Of<
PageLoader
>();
254
var loader = new Mock<
PageLoader
>();
285
var loader = new Mock<
PageLoader
>();
325
var
loader = Mock.Of<
PageLoader
>();
380
var loader = new Mock<
PageLoader
>();
429
var loader = new Mock<
PageLoader
>();
493
PageLoader
loader,