1 instantiation of PageHandlerSelectedContext
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageModelTest.cs (1)
1920
var pageHandlerSelectedContext = new
PageHandlerSelectedContext
(
67 references to PageHandlerSelectedContext
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
26
public Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context)
Microsoft.AspNetCore.Mvc.RazorPages (44)
Diagnostics\MvcDiagnostics.cs (18)
456
/// <param name="handlerSelectedContext">The <see cref="
PageHandlerSelectedContext
"/>.</param>
458
public BeforePageFilterOnPageHandlerSelectionEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerSelectedContext
handlerSelectedContext, IAsyncPageFilter filter)
471
/// The <see cref="
PageHandlerSelectedContext
"/>.
473
public
PageHandlerSelectedContext
HandlerSelectedContext { get; }
507
/// <param name="handlerSelectedContext">The <see cref="
PageHandlerSelectedContext
"/>.</param>
509
public AfterPageFilterOnPageHandlerSelectionEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerSelectedContext
handlerSelectedContext, IAsyncPageFilter filter)
522
/// The <see cref="
PageHandlerSelectedContext
"/>.
524
public
PageHandlerSelectedContext
HandlerSelectedContext { get; }
545
/// An <see cref="EventData"/> that occurs before <see cref="IPageFilter.OnPageHandlerSelected(
PageHandlerSelectedContext
)"/>.
558
/// <param name="handlerSelectedContext">The <see cref="
PageHandlerSelectedContext
"/>.</param>
560
public BeforePageFilterOnPageHandlerSelectedEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerSelectedContext
handlerSelectedContext, IPageFilter filter)
573
/// The <see cref="
PageHandlerSelectedContext
"/>.
575
public
PageHandlerSelectedContext
HandlerSelectedContext { get; }
596
/// An <see cref="EventData"/> that occurs after <see cref="IPageFilter.OnPageHandlerSelected(
PageHandlerSelectedContext
)"/>.
609
/// <param name="handlerSelectedContext">The <see cref="
PageHandlerSelectedContext
"/>.</param>
611
public AfterPageFilterOnPageHandlerSelectedEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerSelectedContext
handlerSelectedContext, IPageFilter filter)
624
/// The <see cref="
PageHandlerSelectedContext
"/>.
626
public
PageHandlerSelectedContext
HandlerSelectedContext { get; }
Filters\IAsyncPageFilter.cs (2)
15
/// <param name="context">The <see cref="
PageHandlerSelectedContext
"/>.</param>
17
Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context);
Filters\IPageFilter.cs (2)
15
/// <param name="context">The <see cref="
PageHandlerSelectedContext
"/>.</param>
16
void OnPageHandlerSelected(
PageHandlerSelectedContext
context);
Filters\PageHandlerPageFilter.cs (1)
42
public Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context)
Filters\PageHandlerSelectedContext.cs (2)
11
/// <see cref="IPageFilter.OnPageHandlerSelected(
PageHandlerSelectedContext
)"/> and
12
/// <see cref="IAsyncPageFilter.OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
)"/>.
Filters\PageResponseCacheFilter.cs (1)
82
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Filters\PageSaveTempDataPropertyFilter.cs (1)
16
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Filters\PageViewDataAttributeFilter.cs (1)
30
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
47
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Infrastructure\PageActionInvoker.cs (3)
30
private
PageHandlerSelectedContext
? _handlerSelectedContext;
361
var
handlerSelectedContext = _handlerSelectedContext;
401
var
handlerSelectedContext = _handlerSelectedContext;
MvcRazorPagesDiagnosticListenerExtensions.cs (8)
267
PageHandlerSelectedContext
handlerSelectedContext,
281
private static void BeforeOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener,
PageHandlerSelectedContext
handlerSelectedContext, IAsyncPageFilter filter)
297
PageHandlerSelectedContext
handlerSelectedContext,
311
private static void AfterOnPageHandlerSelectionImpl(DiagnosticListener diagnosticListener,
PageHandlerSelectedContext
handlerSelectedContext, IAsyncPageFilter filter)
327
PageHandlerSelectedContext
handlerSelectedContext,
341
private static void BeforeOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener,
PageHandlerSelectedContext
handlerSelectedContext, IPageFilter filter)
357
PageHandlerSelectedContext
handlerSelectedContext,
371
private static void AfterOnPageHandlerSelectedImpl(DiagnosticListener diagnosticListener,
PageHandlerSelectedContext
handlerSelectedContext, IPageFilter filter)
PageModel.cs (4)
1665
/// <param name="context">The <see cref="
PageHandlerSelectedContext
"/>.</param>
1666
public virtual void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
1689
/// <param name="context">The <see cref="
PageHandlerSelectedContext
"/>.</param>
1691
public virtual Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context)
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
1153
public Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context)
1189
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Infrastructure\PageActionInvokerTest.cs (14)
363
.Setup(f => f.OnPageHandlerSelected(It.IsAny<
PageHandlerSelectedContext
>()))
364
.Callback<
PageHandlerSelectedContext
>(c =>
380
.Setup(f => f.OnPageHandlerSelected(It.IsAny<
PageHandlerSelectedContext
>()))
381
.Callback<
PageHandlerSelectedContext
>(c => Assert.Same(handler, c.HandlerMethod))
400
filter1.Verify(f => f.OnPageHandlerSelected(It.IsAny<
PageHandlerSelectedContext
>()), Times.Once());
404
filter2.Verify(f => f.OnPageHandlerSelected(It.IsAny<
PageHandlerSelectedContext
>()), Times.Once());
417
.Setup(f => f.OnPageHandlerSelectionAsync(It.IsAny<
PageHandlerSelectedContext
>()))
418
.Callback<
PageHandlerSelectedContext
>(c =>
435
.Setup(f => f.OnPageHandlerSelectionAsync(It.IsAny<
PageHandlerSelectedContext
>()))
436
.Callback<
PageHandlerSelectedContext
>(c => Assert.Same(handler, c.HandlerMethod))
456
filter1.Verify(f => f.OnPageHandlerSelectionAsync(It.IsAny<
PageHandlerSelectedContext
>()), Times.Once());
459
filter2.Verify(f => f.OnPageHandlerSelectionAsync(It.IsAny<
PageHandlerSelectedContext
>()), Times.Once());
1664
filter.Setup(f => f.OnPageHandlerSelected(It.IsAny<
PageHandlerSelectedContext
>()));
1669
filter.Setup(f => f.OnPageHandlerSelectionAsync(It.IsAny<
PageHandlerSelectedContext
>())).Returns(Task.CompletedTask);
PageModelTest.cs (1)
1920
var
pageHandlerSelectedContext = new PageHandlerSelectedContext(
RazorPagesWebSite (5)
ModelWithPageFilter.cs (1)
28
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Pages\Filters\TestPageFilter.cs (1)
19
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (2)
27
public Task OnPageHandlerSelectionAsync(
PageHandlerSelectedContext
context)
47
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
34
public void OnPageHandlerSelected(
PageHandlerSelectedContext
context)