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