25 instantiations of PageResult
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvoker.cs (1)
287_result = new PageResult();
PageBase.cs (1)
481public virtual PageResult Page() => new PageResult();
PageModel.cs (1)
784public virtual PageResult Page() => new PageResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (18)
Filters\PageHandlerResultFilterTest.cs (4)
34new PageResult(), 75new PageResult(), 117new PageResult(), 149new PageResult(),
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (2)
30var expected = new PageResult(); 61var expected = new PageResult();
Infrastructure\PageActionInvokerTest.cs (10)
485var invoker = CreateInvoker(new IFilterMetadata[] { pageFilter.Object }, result: new PageResult()); 554var expectedResult = new PageResult(); 589var expectedResult = new PageResult(); 623var expectedResult = new PageResult(); 658var expectedResult = new PageResult(); 692var expectedResult = new PageResult(); 727var expectedResult = new PageResult(); 761var expectedResult = new PageResult(); 797var expectedResult = new PageResult(); 1534handlers[i] = (obj, args) => Task.FromResult<IActionResult>(new PageResult());
Infrastructure\PageHandlerPageFilterTest.cs (1)
109.Callback((PageHandlerExecutingContext context) => context.Result = new PageResult())
PageModelTest.cs (1)
1898.Callback((PageHandlerExecutingContext context) => context.Result = new PageResult())
RazorPagesWebSite (4)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (2)
31context.Result = new PageResult(); 43context.Result = new PageResult();
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (2)
38context.Result = new PageResult(); 55context.Result = new PageResult();
53 references to PageResult
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
16if (result.Result is PageResult page)
Microsoft.AspNetCore.Mvc.RazorPages (12)
Infrastructure\PageActionInvoker.cs (2)
105if (result is PageResult pageResult) 293if (_result is PageResult pageResult)
Infrastructure\PageResultExecutor.cs (1)
51public virtual Task ExecuteAsync(PageContext pageContext, PageResult result)
PageBase.cs (4)
474/// Creates a <see cref="PageResult"/> object that renders this page as a view to the response. 476/// <returns>The created <see cref="PageResult"/> object for the response.</returns> 478/// Returning a <see cref="PageResult"/> from a page handler method is equivalent to returning void. 481public virtual PageResult Page() => new PageResult();
PageModel.cs (4)
89/// Gets or sets <see cref="ITempDataDictionary"/> used by <see cref="PageResult"/>. 781/// Creates a <see cref="PageResult"/> object that renders the page. 783/// <returns>The <see cref="PageResult"/>.</returns> 784public virtual PageResult Page() => new PageResult();
PageResult.cs (1)
57nameof(PageResult)));
Microsoft.AspNetCore.Mvc.RazorPages.Test (39)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (2)
30var expected = new PageResult(); 61var expected = new PageResult();
Infrastructure\PageActionInvokerTest.cs (34)
203var pageResult = Assert.IsType<PageResult>(result); 259var pageResult = Assert.IsType<PageResult>(result); 319var pageResult = Assert.IsType<PageResult>(result); 480var pageResult = Assert.IsType<PageResult>(result); 554var expectedResult = new PageResult(); 578var pageResult = Assert.IsType<PageResult>(result); 589var expectedResult = new PageResult(); 612var pageResult = Assert.IsType<PageResult>(result); 623var expectedResult = new PageResult(); 647var pageResult = Assert.IsType<PageResult>(result); 658var expectedResult = new PageResult(); 681var pageResult = Assert.IsType<PageResult>(result); 692var expectedResult = new PageResult(); 716var pageResult = Assert.IsType<PageResult>(result); 727var expectedResult = new PageResult(); 750var pageResult = Assert.IsType<PageResult>(result); 761var expectedResult = new PageResult(); 786var pageResult = Assert.IsType<PageResult>(result); 797var expectedResult = new PageResult(); 821var pageResult = Assert.IsType<PageResult>(result); 1415var resultName = typeof(PageResult).FullName; 1693public override Task ExecuteAsync(PageContext pageContext, PageResult result)
PageModelTest.cs (3)
1835var result = pageModel.Page(); 1838var pageResult = Assert.IsType<PageResult>(result);
RazorPagesWebSite (1)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
24if (context.Result is PageResult pageResult)