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