14 writes to Result
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
43
context.
Result
= new OkResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (3)
32
context.
Result
= expected;
64
context.
Result
= expected;
97
context.
Result
= expected;
Infrastructure\PageActionInvokerTest.cs (6)
770
context.
Result
= expectedResult;
806
context.
Result
= expectedResult;
852
.Callback<PageHandlerExecutingContext>(c => c.
Result
= result.Object)
915
c.
Result
= result.Object;
1028
c.
Result
= new EmptyResult();
1239
c.
Result
= expected;
Infrastructure\PageHandlerPageFilterTest.cs (1)
109
.Callback((PageHandlerExecutingContext context) => context.
Result
= new PageResult())
PageModelTest.cs (1)
1898
.Callback((PageHandlerExecutingContext context) => context.
Result
= new PageResult())
RazorPagesWebSite (2)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (2)
38
context.
Result
= new PageResult();
55
context.
Result
= new PageResult();
18 references to Result
Microsoft.AspNetCore.Mvc.RazorPages (9)
Filters\PageHandlerExecutingContext.cs (1)
47
/// Gets or sets the <see cref="IActionResult"/> to execute. Setting <see cref="
Result
"/> to a non-<c>null</c>
Filters\PageHandlerPageFilter.cs (1)
64
if (context.
Result
== null)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
40
context.
Result
== null &&
Infrastructure\PageActionInvoker.cs (5)
514
Result = _handlerExecutingContext.
Result
,
550
if (handlerExecutingContext.
Result
!= null)
562
Result = _handlerExecutingContext.
Result
,
676
if (_handlerExecutingContext.
Result
!= null)
681
nameof(PageHandlerExecutingContext.
Result
),
PageModel.cs (1)
1713
if (context.
Result
== null)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (7)
23
Assert.Null(context.
Result
);
39
Assert.Same(expected, context.
Result
);
54
Assert.Null(context.
Result
);
72
Assert.Same(expected, context.
Result
);
88
Assert.Null(context.
Result
);
106
Assert.Same(expected, context.
Result
);
122
Assert.IsType<OkResult>(context.
Result
);
Infrastructure\PageActionInvokerTest.cs (2)
771
result = context.
Result
;
807
result = context.
Result
;