25 instantiations of PageResult
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvoker.cs (1)
287
_result = new
PageResult
();
PageBase.cs (1)
481
public virtual PageResult Page() => new
PageResult
();
PageModel.cs (1)
784
public virtual PageResult Page() => new
PageResult
();
Microsoft.AspNetCore.Mvc.RazorPages.Test (18)
Filters\PageHandlerResultFilterTest.cs (4)
34
new
PageResult
(),
75
new
PageResult
(),
117
new
PageResult
(),
149
new
PageResult
(),
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (2)
30
var expected = new
PageResult
();
61
var expected = new
PageResult
();
Infrastructure\PageActionInvokerTest.cs (10)
485
var invoker = CreateInvoker(new IFilterMetadata[] { pageFilter.Object }, result: new
PageResult
());
554
var expectedResult = new
PageResult
();
589
var expectedResult = new
PageResult
();
623
var expectedResult = new
PageResult
();
658
var expectedResult = new
PageResult
();
692
var expectedResult = new
PageResult
();
727
var expectedResult = new
PageResult
();
761
var expectedResult = new
PageResult
();
797
var expectedResult = new
PageResult
();
1534
handlers[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)
31
context.Result = new
PageResult
();
43
context.Result = new
PageResult
();
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (2)
38
context.Result = new
PageResult
();
55
context.Result = new
PageResult
();
53 references to PageResult
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
16
if (result.Result is
PageResult
page)
Microsoft.AspNetCore.Mvc.RazorPages (12)
Infrastructure\PageActionInvoker.cs (2)
105
if (result is
PageResult
pageResult)
293
if (_result is
PageResult
pageResult)
Infrastructure\PageResultExecutor.cs (1)
51
public 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.
481
public 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>
784
public virtual
PageResult
Page() => new PageResult();
PageResult.cs (1)
57
nameof(
PageResult
)));
Microsoft.AspNetCore.Mvc.RazorPages.Test (39)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (2)
30
var
expected = new PageResult();
61
var
expected = new PageResult();
Infrastructure\PageActionInvokerTest.cs (34)
203
var
pageResult = Assert.IsType<
PageResult
>(result);
259
var
pageResult = Assert.IsType<
PageResult
>(result);
319
var
pageResult = Assert.IsType<
PageResult
>(result);
480
var
pageResult = Assert.IsType<
PageResult
>(result);
554
var
expectedResult = new PageResult();
578
var
pageResult = Assert.IsType<
PageResult
>(result);
589
var
expectedResult = new PageResult();
612
var
pageResult = Assert.IsType<
PageResult
>(result);
623
var
expectedResult = new PageResult();
647
var
pageResult = Assert.IsType<
PageResult
>(result);
658
var
expectedResult = new PageResult();
681
var
pageResult = Assert.IsType<
PageResult
>(result);
692
var
expectedResult = new PageResult();
716
var
pageResult = Assert.IsType<
PageResult
>(result);
727
var
expectedResult = new PageResult();
750
var
pageResult = Assert.IsType<
PageResult
>(result);
761
var
expectedResult = new PageResult();
786
var
pageResult = Assert.IsType<
PageResult
>(result);
797
var
expectedResult = new PageResult();
821
var
pageResult = Assert.IsType<
PageResult
>(result);
1415
var resultName = typeof(
PageResult
).FullName;
1693
public override Task ExecuteAsync(PageContext pageContext,
PageResult
result)
PageModelTest.cs (3)
1835
var
result = pageModel.Page();
1838
var
pageResult = Assert.IsType<
PageResult
>(result);
RazorPagesWebSite (1)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
24
if (context.Result is
PageResult
pageResult)