6 instantiations of PageHandlerExecutedContext
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\PageHandlerPageFilterTest.cs (4)
31
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
79
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
122
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
155
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
PageModelTest.cs (2)
1857
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
1891
var pageHandlerExecutedContext = new
PageHandlerExecutedContext
(
97 references to PageHandlerExecutedContext
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
15
var
result = await next();
Microsoft.AspNetCore.Mvc.RazorPages (37)
Diagnostics\MvcDiagnostics.cs (11)
203
public AfterPageFilterOnPageHandlerExecutionEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutedContext
handlerExecutedContext, IAsyncPageFilter filter)
216
/// The <see cref="
PageHandlerExecutedContext
"/>.
218
public
PageHandlerExecutedContext
HandlerExecutedContext { get; }
354
/// <param name="handlerExecutedContext">The <see cref="
PageHandlerExecutedContext
"/>.</param>
356
public BeforePageFilterOnPageHandlerExecutedEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutedContext
handlerExecutedContext, IPageFilter filter)
369
/// The <see cref="
PageHandlerExecutedContext
"/>.
371
public
PageHandlerExecutedContext
HandlerExecutedContext { get; }
405
/// <param name="handlerExecutedContext">The <see cref="
PageHandlerExecutedContext
"/>.</param>
407
public AfterPageFilterOnPageHandlerExecutedEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutedContext
handlerExecutedContext, IPageFilter filter)
420
/// The <see cref="
PageHandlerExecutedContext
"/>.
422
public
PageHandlerExecutedContext
HandlerExecutedContext { get; }
Filters\IPageFilter.cs (2)
27
/// <param name="context">The <see cref="
PageHandlerExecutedContext
"/>.</param>
28
void OnPageHandlerExecuted(
PageHandlerExecutedContext
context);
Filters\PageHandlerExecutedContext.cs (2)
12
/// <see cref="IPageFilter.OnPageHandlerExecuted(
PageHandlerExecutedContext
)"/> and
21
/// Creates a new instance of <see cref="
PageHandlerExecutedContext
"/>.
Filters\PageHandlerExecutionDelegate.cs (3)
7
/// A delegate that asynchronously returns a <see cref="
PageHandlerExecutedContext
"/> indicating the page or the next
11
/// A <see cref="Task"/> that on completion returns an <see cref="
PageHandlerExecutedContext
"/>.
13
public delegate Task<
PageHandlerExecutedContext
> PageHandlerExecutionDelegate();
Filters\PageHandlerPageFilter.cs (1)
25
nameof(
PageHandlerExecutedContext
)));
Filters\PageHandlerSelectedContext.cs (1)
17
/// Creates a new instance of <see cref="
PageHandlerExecutedContext
"/>.
Filters\PageResponseCacheFilter.cs (1)
99
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Filters\PageSaveTempDataPropertyFilter.cs (1)
28
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Filters\PageViewDataAttributeFilter.cs (1)
20
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
31
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Infrastructure\PageActionInvoker.cs (5)
32
private
PageHandlerExecutedContext
? _handlerExecutedContext;
585
var
handlerExecutedContext = _handlerExecutedContext;
632
var
handlerExecutedContext = _handlerExecutedContext;
673
private async Task<
PageHandlerExecutedContext
> InvokeNextPageFilterAwaitedAsync()
694
private static void Rethrow(
PageHandlerExecutedContext
? context)
MvcRazorPagesDiagnosticListenerExtensions.cs (6)
117
PageHandlerExecutedContext
handlerExecutedContext,
131
private static void AfterOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutedContext
handlerExecutedContext, IAsyncPageFilter filter)
207
PageHandlerExecutedContext
handlerExecutedContext,
221
private static void BeforeOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutedContext
handlerExecutedContext, IPageFilter filter)
237
PageHandlerExecutedContext
handlerExecutedContext,
251
private static void AfterOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutedContext
handlerExecutedContext, IPageFilter filter)
PageModel.cs (2)
1681
/// <param name="context">The <see cref="
PageHandlerExecutedContext
"/>.</param>
1682
public virtual void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (55)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1179
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Infrastructure\PageActionInvokerTest.cs (46)
169
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
170
.Callback<
PageHandlerExecutedContext
>(c =>
225
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
226
.Callback<
PageHandlerExecutedContext
>(c =>
282
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
283
.Callback<
PageHandlerExecutedContext
>(c =>
374
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
375
.Callback<
PageHandlerExecutedContext
>(c => Assert.Same(handler, c.HandlerMethod))
388
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
389
.Callback<
PageHandlerExecutedContext
>(c => Assert.Same(handler, c.HandlerMethod))
402
filter1.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
406
filter2.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
475
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
476
.Callback<
PageHandlerExecutedContext
>(c =>
504
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
505
.Callback<
PageHandlerExecutedContext
>(c => result = c.Result)
515
filter.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
532
var
resultContext = await next();
838
PageHandlerExecutedContext
context = null;
844
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
845
.Callback<
PageHandlerExecutedContext
>(c => context = c)
876
pageFilter1.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
879
pageFilter2.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Never());
898
PageHandlerExecutedContext
context = null;
904
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
905
.Callback<
PageHandlerExecutedContext
>(c => context = c)
945
pageFilter1.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
964
PageHandlerExecutedContext
context = null;
970
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
971
.Callback<
PageHandlerExecutedContext
>(c => context = c)
1005
pageFilter1.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
1050
PageHandlerExecutedContext
context = null;
1056
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
1057
.Callback<
PageHandlerExecutedContext
>(c =>
1075
filter.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
1086
PageHandlerExecutedContext
context = null;
1092
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
1093
.Callback<
PageHandlerExecutedContext
>(c =>
1117
filter1.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
1120
filter2.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Never());
1131
PageHandlerExecutedContext
context = null;
1151
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
1152
.Callback<
PageHandlerExecutedContext
>(c => { throw exception; })
1185
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
1186
.Callback<
PageHandlerExecutedContext
>(c =>
1209
pageFilter.Verify(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()), Times.Once());
Infrastructure\PageHandlerPageFilterTest.cs (6)
31
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
70
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
79
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
113
.Setup(f => f.OnPageHandlerExecuted(It.IsAny<
PageHandlerExecutedContext
>()))
122
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
155
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
PageModelTest.cs (2)
1857
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
1891
var
pageHandlerExecutedContext = new PageHandlerExecutedContext(
RazorPagesWebSite (4)
ModelWithPageFilter.cs (1)
37
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Pages\Filters\TestPageFilter.cs (1)
10
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
59
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
20
public void OnPageHandlerExecuted(
PageHandlerExecutedContext
context)