1 override of LoadAsync
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageLoader.cs (1)
38
public override Task<CompiledPageActionDescriptor>
LoadAsync
(PageActionDescriptor actionDescriptor, EndpointMetadataCollection endpointMetadata)
23 references to LoadAsync
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
77
var compiled = _loader.
LoadAsync
(page, endpoint.Metadata);
114
compiled = await pageLoader.
LoadAsync
(page, endpoint.Metadata);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
PageLoaderMatcherPolicyTest.cs (3)
24
var loader = Mock.Of<PageLoader>(p => p.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()) == Task.FromResult(compiled));
43
loader.Setup(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()))
75
var loader = Mock.Of<PageLoader>(p => p.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()) == loadTask);
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
169
await _loader.
LoadAsync
(actionDescriptor, endpoint.Metadata);
Infrastructure\PageActionInvokerProvider.cs (1)
76
page.CompiledPageDescriptor = _pageLoader.
LoadAsync
(page, EndpointMetadataCollection.Empty).GetAwaiter().GetResult();
Infrastructure\PageLoader.cs (1)
33
=>
LoadAsync
(actionDescriptor, EndpointMetadataCollection.Empty).GetAwaiter().GetResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (15)
Infrastructure\DefaultPageLoaderTest.cs (9)
94
var result = await loader.
LoadAsync
(new PageActionDescriptor(), EndpointMetadataCollection.Empty);
148
var result = await loader.
LoadAsync
(descriptor, EndpointMetadataCollection.Empty);
211
var result = await loader.
LoadAsync
(new PageActionDescriptor(), EndpointMetadataCollection.Empty);
265
var result1 = await loader.
LoadAsync
(descriptor, EndpointMetadataCollection.Empty);
266
var result2 = await loader.
LoadAsync
(descriptor, EndpointMetadataCollection.Empty);
325
var result1 = await loader.
LoadAsync
(descriptor, EndpointMetadataCollection.Empty);
326
var result2 = await loader.
LoadAsync
(descriptor2, EndpointMetadataCollection.Empty);
347
var result1 = await loader.
LoadAsync
(pageDescriptor, new EndpointMetadataCollection());
348
var result2 = await loader.
LoadAsync
(pageDescriptor, new EndpointMetadataCollection());
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
79
.Setup(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()))
Infrastructure\PageActionInvokerProviderTest.cs (5)
272
loader.Verify(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()), Times.Never());
286
loader.Setup(l => l.
LoadAsync
(descriptor, EndpointMetadataCollection.Empty))
306
loader.Verify(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()), Times.Once());
382
.Setup(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()))
431
.Setup(l => l.
LoadAsync
(It.IsAny<PageActionDescriptor>(), It.IsAny<EndpointMetadataCollection>()))