10 implementations of IPageFilter
Microsoft.AspNetCore.Mvc.RazorPages (5)
Filters\PageResponseCacheFilter.cs (1)
12internal sealed class PageResponseCacheFilter : IPageFilter, IResponseCacheFilter
Filters\PageSaveTempDataPropertyFilter.cs (1)
9internal sealed class PageSaveTempDataPropertyFilter : SaveTempDataPropertyFilterBase, IPageFilter
Filters\PageViewDataAttributeFilter.cs (1)
9internal sealed class PageViewDataAttributeFilter : IPageFilter, IViewDataValuesProviderFeature
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
24internal sealed class HandleOptionsRequestsPageFilter : IPageFilter, IOrderedFilter
PageModel.cs (1)
26public abstract class PageModel : IAsyncPageFilter, IPageFilter
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1177private class ModelImplementingPageFilter : IPageFilter
RazorPagesWebSite (4)
ModelWithPageFilter.cs (1)
26public class HandlerChangingPageFilterAttribute : Attribute, IPageFilter
Pages\Filters\TestPageFilter.cs (1)
8public class TestPageFilter : Attribute, IPageFilter
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
45private class SyncTestPageFilterAttribute : Attribute, IPageFilter
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
18private class TestPageFilterAttribute : Attribute, IPageFilter
86 references to IPageFilter
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RazorPagesTest.cs (1)
1430[InlineData(nameof(IPageFilter.OnPageHandlerExecuting))]
Microsoft.AspNetCore.Mvc.RazorPages (59)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
165typeof(IPageFilter).IsAssignableFrom(pageModel.HandlerType))
Diagnostics\MvcDiagnostics.cs (26)
253/// <param name="filter">The <see cref="IPageFilter"/>.</param> 254public BeforePageFilterOnPageHandlerExecutingEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 274public IPageFilter Filter { get; } 304/// <param name="filter">The <see cref="IPageFilter"/>.</param> 305public AfterPageFilterOnPageHandlerExecutingEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 323/// The <see cref="IPageFilter"/>. 325public IPageFilter Filter { get; } 355/// <param name="filter">The <see cref="IPageFilter"/>.</param> 356public BeforePageFilterOnPageHandlerExecutedEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 374/// The <see cref="IPageFilter"/>. 376public IPageFilter Filter { get; } 406/// <param name="filter">The <see cref="IPageFilter"/>.</param> 407public AfterPageFilterOnPageHandlerExecutedEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 425/// The <see cref="IPageFilter"/>. 427public IPageFilter Filter { get; } 476/// The <see cref="IPageFilter"/>. 545/// An <see cref="EventData"/> that occurs before <see cref="IPageFilter.OnPageHandlerSelected(PageHandlerSelectedContext)"/>. 559/// <param name="filter">The <see cref="IPageFilter"/>.</param> 560public BeforePageFilterOnPageHandlerSelectedEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) 578/// The <see cref="IPageFilter"/>. 580public IPageFilter Filter { get; } 596/// An <see cref="EventData"/> that occurs after <see cref="IPageFilter.OnPageHandlerSelected(PageHandlerSelectedContext)"/>. 610/// <param name="filter">The <see cref="IPageFilter"/>.</param> 611public AfterPageFilterOnPageHandlerSelectedEventData(CompiledPageActionDescriptor actionDescriptor, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) 629/// The <see cref="IPageFilter"/>. 631public IPageFilter Filter { get; }
Filters\PageHandlerExecutedContext.cs (1)
12/// <see cref="IPageFilter.OnPageHandlerExecuted(PageHandlerExecutedContext)"/> and
Filters\PageHandlerExecutingContext.cs (1)
11/// <see cref="IPageFilter.OnPageHandlerExecuting(PageHandlerExecutingContext)"/> and
Filters\PageHandlerPageFilter.cs (3)
32else if (handlerInstance is IPageFilter pageFilter) 50else if (context.HandlerInstance is IPageFilter pageFilter) 61IPageFilter pageFilter)
Filters\PageHandlerSelectedContext.cs (1)
11/// <see cref="IPageFilter.OnPageHandlerSelected(PageHandlerSelectedContext)"/> and
Filters\PageResponseCacheFilter.cs (1)
10/// A <see cref="IPageFilter"/> which sets the appropriate headers related to response caching.
Infrastructure\PageActionInvoker.cs (13)
323var currentSelector = _cursor.GetNextFilter<IPageFilter, IAsyncPageFilter>(); 400var filter = (IPageFilter)state; 406nameof(IPageFilter.OnPageHandlerSelected), 442var current = _cursor.GetNextFilter<IPageFilter, IAsyncPageFilter>(); 533var filter = (IPageFilter)state; 539nameof(IPageFilter.OnPageHandlerExecuting), 547nameof(IPageFilter.OnPageHandlerExecuting), 584var filter = (IPageFilter)state; 590nameof(IPageFilter.OnPageHandlerExecuted), 598nameof(IPageFilter.OnPageHandlerExecuted),
MvcRazorPagesDiagnosticListenerExtensions.cs (12)
148IPageFilter filter) 161private static void BeforeOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 178IPageFilter filter) 191private static void AfterOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener, PageHandlerExecutingContext handlerExecutingContext, IPageFilter filter) 208IPageFilter filter) 221private static void BeforeOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 238IPageFilter filter) 251private static void AfterOnPageHandlerExecutedImpl(DiagnosticListener diagnosticListener, PageHandlerExecutedContext handlerExecutedContext, IPageFilter filter) 328IPageFilter filter) 341private static void BeforeOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter) 358IPageFilter filter) 371private static void AfterOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener, PageHandlerSelectedContext handlerSelectedContext, IPageFilter filter)
Microsoft.AspNetCore.Mvc.RazorPages.Test (26)
Infrastructure\PageActionInvokerTest.cs (24)
160var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 216var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 273var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 334var pageFilter = new Mock<IPageFilter>(); 361var filter1 = new Mock<IPageFilter>(MockBehavior.Strict); 378var filter2 = new Mock<IPageFilter>(MockBehavior.Strict); 472var pageFilter = new Mock<IPageFilter>(); 500var filter = new Mock<IPageFilter>(MockBehavior.Strict); 800var filter = new Mock<IPageFilter>(MockBehavior.Strict); 840var pageFilter1 = new Mock<IPageFilter>(MockBehavior.Strict); 848var pageFilter2 = new Mock<IPageFilter>(MockBehavior.Strict); 855var pageFilter3 = new Mock<IPageFilter>(MockBehavior.Strict); 900var pageFilter1 = new Mock<IPageFilter>(MockBehavior.Strict); 920var pageFilter3 = new Mock<IPageFilter>(MockBehavior.Strict); 966var pageFilter1 = new Mock<IPageFilter>(MockBehavior.Strict); 985var pageFilter3 = new Mock<IPageFilter>(MockBehavior.Strict); 1052var filter = new Mock<IPageFilter>(MockBehavior.Strict); 1088var filter1 = new Mock<IPageFilter>(MockBehavior.Strict); 1103var filter2 = new Mock<IPageFilter>(MockBehavior.Strict); 1147var filter2 = new Mock<IPageFilter>(MockBehavior.Strict); 1181var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 1233var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 1272var pageFilter = new Mock<IPageFilter>(MockBehavior.Strict); 1662private void AllowSelector(Mock<IPageFilter> filter)
Infrastructure\PageHandlerPageFilterTest.cs (2)
64var modelAsFilter = model.As<IPageFilter>(); 106var modelAsFilter = model.As<IPageFilter>();