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