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