5 implementations of IAsyncPageFilter
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
11internal sealed class ExternalLoginsPageFilter<TUser> : IAsyncPageFilter where TUser : class
Microsoft.AspNetCore.Mvc.RazorPages (2)
Filters\PageHandlerPageFilter.cs (1)
8internal sealed class PageHandlerPageFilter : IAsyncPageFilter, IOrderedFilter
PageModel.cs (1)
26public abstract class PageModel : IAsyncPageFilter, IPageFilter
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1146private class ModelImplementingAsyncPageFilter : IAsyncPageFilter
RazorPagesWebSite (1)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
25private class AsyncTestPageFilterAttribute : Attribute, IAsyncPageFilter
58 references to IAsyncPageFilter
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RazorPagesTest.cs (1)
1431[InlineData(nameof(IAsyncPageFilter.OnPageHandlerExecutionAsync))]
Microsoft.AspNetCore.Mvc.RazorPages (45)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
164if (typeof(IAsyncPageFilter).IsAssignableFrom(pageModel.HandlerType) ||
Diagnostics\MvcDiagnostics.cs (16)
151/// <param name="filter">The <see cref="IAsyncPageFilter"/>.</param> 152public BeforePageFilterOnPageHandlerExecutionEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutingContext handlerExecutionContext, IAsyncPageFilter filter) 170/// The <see cref="IAsyncPageFilter"/>. 172public IAsyncPageFilter Filter { get; } 202/// <param name="filter">The <see cref="IAsyncPageFilter"/>.</param> 203public AfterPageFilterOnPageHandlerExecutionEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutedContext handlerExecutedContext, IAsyncPageFilter filter) 221/// The <see cref="IAsyncPageFilter"/>. 223public IAsyncPageFilter Filter { get; } 272/// The <see cref="IAsyncPageFilter"/>. 457/// <param name="filter">The <see cref="IAsyncPageFilter"/>.</param> 458public BeforePageFilterOnPageHandlerSelectionEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) 478public IAsyncPageFilter Filter { get; } 508/// <param name="filter">The <see cref="IAsyncPageFilter"/>.</param> 509public AfterPageFilterOnPageHandlerSelectionEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) 527/// The <see cref="IAsyncPageFilter"/>. 529public IAsyncPageFilter Filter { get; }
Filters\PageHandlerExecutedContext.cs (1)
13/// <see cref="IAsyncPageFilter.OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)"/>.
Filters\PageHandlerExecutingContext.cs (1)
12/// <see cref="IAsyncPageFilter.OnPageHandlerExecutionAsync(PageHandlerExecutingContext, PageHandlerExecutionDelegate)"/>.
Filters\PageHandlerPageFilter.cs (2)
28if (handlerInstance is IAsyncPageFilter asyncPageFilter) 46if (context.HandlerInstance is IAsyncPageFilter asyncPageFilter)
Filters\PageHandlerSelectedContext.cs (1)
12/// <see cref="IAsyncPageFilter.OnPageHandlerSelectionAsync(PageHandlerSelectedContext)"/>.
Infrastructure\PageActionInvoker.cs (15)
323var currentSelector = _cursor.GetNextFilter<IPageFilter, IAsyncPageFilter>(); 360var filter = (IAsyncPageFilter)state; 366nameof(IAsyncPageFilter.OnPageHandlerSelectionAsync), 384var filter = (IAsyncPageFilter)state; 389nameof(IAsyncPageFilter.OnPageHandlerSelectionAsync), 442var current = _cursor.GetNextFilter<IPageFilter, IAsyncPageFilter>(); 474var filter = (IAsyncPageFilter)state; 480nameof(IAsyncPageFilter.OnPageHandlerExecutionAsync), 500var filter = (IAsyncPageFilter)state; 521nameof(IAsyncPageFilter.OnPageHandlerExecutionAsync), 680typeof(IAsyncPageFilter).Name,
MvcRazorPagesDiagnosticListenerExtensions.cs (8)
88IAsyncPageFilter filter) 101private static void BeforeOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutionContext, IAsyncPageFilter filter) 118IAsyncPageFilter filter) 131private static void AfterOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IAsyncPageFilter filter) 268IAsyncPageFilter filter) 281private static void BeforeOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter) 298IAsyncPageFilter filter) 311private static void AfterOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IAsyncPageFilter filter)
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Infrastructure\PageActionInvokerTest.cs (11)
415var filter1 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 433var filter2 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 526var filter = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 764var filter = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 908var pageFilter2 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 974var pageFilter2 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 1022var pageFilter = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 1133var filter1 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 1349var pageFilter1 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 1358var pageFilter2 = new Mock<IAsyncPageFilter>(MockBehavior.Strict); 1667private void AllowSelector(Mock<IAsyncPageFilter> filter)
Infrastructure\PageHandlerPageFilterTest.cs (1)
38var modelAsFilter = model.As<IAsyncPageFilter>();