12 instantiations of PageHandlerExecutingContext
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
58
var context = new
PageHandlerExecutingContext
(
99
var context = new
PageHandlerExecutingContext
(
139
var context = new
PageHandlerExecutingContext
(
Filters\PageViewDataAttributeFilterTest.cs (2)
26
var context = new
PageHandlerExecutingContext
(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
45
var context = new
PageHandlerExecutingContext
(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
129
return new
PageHandlerExecutingContext
(pageContext, Array.Empty<IFilterMetadata>(), handlerMethodDescriptor, new Dictionary<string, object>(), new object());
Infrastructure\PageHandlerPageFilterTest.cs (4)
25
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
73
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
116
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
149
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
PageModelTest.cs (2)
1851
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
1885
var pageHandlerExecutingContext = new
PageHandlerExecutingContext
(
143 references to PageHandlerExecutingContext
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
13
public async Task OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
context, PageHandlerExecutionDelegate next)
Microsoft.AspNetCore.Mvc.RazorPages (40)
Diagnostics\MvcDiagnostics.cs (11)
152
public BeforePageFilterOnPageHandlerExecutionEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutingContext
handlerExecutionContext, IAsyncPageFilter filter)
165
/// The <see cref="
PageHandlerExecutingContext
"/>.
167
public
PageHandlerExecutingContext
HandlerExecutionContext { get; }
252
/// <param name="handlerExecutingContext">The <see cref="
PageHandlerExecutingContext
"/>.</param>
254
public BeforePageFilterOnPageHandlerExecutingEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutingContext
handlerExecutingContext, IPageFilter filter)
267
/// The <see cref="
PageHandlerExecutingContext
"/>.
269
public
PageHandlerExecutingContext
HandlerExecutingContext { get; }
303
/// <param name="handlerExecutingContext">The <see cref="
PageHandlerExecutingContext
"/>.</param>
305
public AfterPageFilterOnPageHandlerExecutingEventData(CompiledPageActionDescriptor actionDescriptor,
PageHandlerExecutingContext
handlerExecutingContext, IPageFilter filter)
318
/// The <see cref="
PageHandlerExecutingContext
"/>.
320
public
PageHandlerExecutingContext
HandlerExecutingContext { get; }
Filters\IAsyncPageFilter.cs (2)
22
/// <param name="context">The <see cref="
PageHandlerExecutingContext
"/>.</param>
27
Task OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
context, PageHandlerExecutionDelegate next);
Filters\IPageFilter.cs (2)
21
/// <param name="context">The <see cref="
PageHandlerExecutingContext
"/>.</param>
22
void OnPageHandlerExecuting(
PageHandlerExecutingContext
context);
Filters\PageHandlerExecutedContext.cs (1)
13
/// <see cref="IAsyncPageFilter.OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
, PageHandlerExecutionDelegate)"/>.
Filters\PageHandlerExecutingContext.cs (3)
11
/// <see cref="IPageFilter.OnPageHandlerExecuting(
PageHandlerExecutingContext
)"/> and
12
/// <see cref="IAsyncPageFilter.OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
, PageHandlerExecutionDelegate)"/>.
17
/// Creates a new instance of <see cref="
PageHandlerExecutingContext
"/>.
Filters\PageHandlerPageFilter.cs (2)
15
public Task OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
context, PageHandlerExecutionDelegate next)
59
PageHandlerExecutingContext
context,
Filters\PageResponseCacheFilter.cs (1)
86
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Filters\PageSaveTempDataPropertyFilter.cs (1)
20
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Filters\PageViewDataAttributeFilter.cs (1)
24
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Infrastructure\HandleOptionsRequestsPageFilter.cs (1)
35
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Infrastructure\PageActionInvoker.cs (5)
31
private
PageHandlerExecutingContext
? _handlerExecutingContext;
475
var
handlerExecutingContext = _handlerExecutingContext;
534
var
handlerExecutingContext = _handlerExecutingContext;
681
nameof(
PageHandlerExecutingContext
.Result),
682
typeof(
PageHandlerExecutingContext
).Name,
MvcRazorPagesDiagnosticListenerExtensions.cs (6)
87
PageHandlerExecutingContext
handlerExecutionContext,
101
private static void BeforeOnPageHandlerExecutionImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutingContext
handlerExecutionContext, IAsyncPageFilter filter)
147
PageHandlerExecutingContext
handlerExecutingContext,
161
private static void BeforeOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutingContext
handlerExecutingContext, IPageFilter filter)
177
PageHandlerExecutingContext
handlerExecutingContext,
191
private static void AfterOnPageHandlerExecutingImpl(DiagnosticListener diagnosticListener,
PageHandlerExecutingContext
handlerExecutingContext, IPageFilter filter)
PageModel.cs (4)
1673
/// <param name="context">The <see cref="
PageHandlerExecutingContext
"/>.</param>
1674
public virtual void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
1702
/// <param name="context">The <see cref="
PageHandlerExecutingContext
"/>.</param>
1707
public virtual async Task OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
context, PageHandlerExecutionDelegate next)
Microsoft.AspNetCore.Mvc.RazorPages.Test (95)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
1148
public Task OnPageHandlerExecutionAsync(
PageHandlerExecutingContext
context, PageHandlerExecutionDelegate next)
1184
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
58
var
context = new PageHandlerExecutingContext(
99
var
context = new PageHandlerExecutingContext(
139
var
context = new PageHandlerExecutingContext(
Filters\PageViewDataAttributeFilterTest.cs (2)
26
var
context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
45
var
context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (8)
16
var
context = GetContext(new HandlerMethodDescriptor());
31
var
context = GetContext(new HandlerMethodDescriptor());
46
var
context = GetContext(handlerMethodDescriptor: null);
62
var
context = GetContext(handlerMethodDescriptor: null);
79
var
context = GetContext(new HandlerMethodDescriptor());
96
var
context = GetContext(new HandlerMethodDescriptor());
113
var
context = GetContext(handlerMethodDescriptor: null);
125
private static
PageHandlerExecutingContext
GetContext(HandlerMethodDescriptor handlerMethodDescriptor)
Infrastructure\PageActionInvokerTest.cs (70)
163
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
164
.Callback<
PageHandlerExecutingContext
>(c =>
219
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
220
.Callback<
PageHandlerExecutingContext
>(c =>
276
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
277
.Callback<
PageHandlerExecutingContext
>(c =>
337
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
338
.Callback<
PageHandlerExecutingContext
>(c =>
370
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
371
.Callback<
PageHandlerExecutingContext
>(c => Assert.Same(handler, c.HandlerMethod))
384
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
385
.Callback<
PageHandlerExecutingContext
>(c => Assert.Same(handler, c.HandlerMethod))
401
filter1.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
405
filter2.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
425
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
426
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
440
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
441
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
457
filter1.Verify(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()), Times.Once());
460
filter2.Verify(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()), Times.Once());
502
filter.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
514
filter.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
529
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
530
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (context, next) =>
544
f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()),
767
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
768
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>((context, next) =>
783
f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()),
803
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
804
.Callback<
PageHandlerExecutingContext
>((context) =>
818
f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()),
842
pageFilter1.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
851
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
852
.Callback<
PageHandlerExecutingContext
>(c => c.Result = result.Object)
875
pageFilter1.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
878
pageFilter2.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
902
pageFilter1.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
911
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
912
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>((c, next) =>
944
pageFilter1.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
948
f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()),
968
pageFilter1.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
977
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
978
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>((c, next) =>
1004
pageFilter1.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1008
f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()),
1025
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
1026
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
1054
filter.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
1074
filter.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1090
filter1.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
1106
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
1107
.Callback<
PageHandlerExecutingContext
>(c => { throw exception; })
1116
filter1.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1119
filter2.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1136
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
1137
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
1149
filter2.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
1162
f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()),
1165
filter2.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1183
pageFilter.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>())).Verifiable();
1208
pageFilter.Verify(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()), Times.Once());
1236
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
1237
.Callback<
PageHandlerExecutingContext
>((c) =>
1275
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
1276
.Callback<
PageHandlerExecutingContext
>((c) =>
1352
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
1353
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
1361
.Setup(f => f.OnPageHandlerExecutionAsync(It.IsAny<
PageHandlerExecutingContext
>(), It.IsAny<PageHandlerExecutionDelegate>()))
1362
.Returns<
PageHandlerExecutingContext
, PageHandlerExecutionDelegate>(async (c, next) =>
Infrastructure\PageHandlerPageFilterTest.cs (7)
25
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
66
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
73
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
108
.Setup(f => f.OnPageHandlerExecuting(It.IsAny<
PageHandlerExecutingContext
>()))
109
.Callback((
PageHandlerExecutingContext
context) => context.Result = new PageResult())
116
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
149
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
PageModelTest.cs (3)
1851
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
1885
var
pageHandlerExecutingContext = new PageHandlerExecutingContext(
1898
.Callback((
PageHandlerExecutingContext
context) => context.Result = new PageResult())
RazorPagesWebSite (7)
ModelAsFilter.cs (1)
21
public override void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
ModelWithPageFilter.cs (1)
33
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Pages\Filters\TestPageFilter.cs (1)
14
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (2)
33
PageHandlerExecutingContext
context,
51
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Pages\ViewData\ViewDataInPage.cs (1)
30
public override void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
30
public void OnPageHandlerExecuting(
PageHandlerExecutingContext
context)