71 instantiations of HandlerMethodDescriptor
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
84
handlerDescriptors[i] = new
HandlerMethodDescriptor
Microsoft.AspNetCore.Mvc.RazorPages.Test (70)
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\DefaultPageHandlerMethodSelectorTest.cs (33)
16
var descriptor1 = new
HandlerMethodDescriptor
21
var descriptor2 = new
HandlerMethodDescriptor
58
var descriptor1 = new
HandlerMethodDescriptor
63
var descriptor2 = new
HandlerMethodDescriptor
68
var descriptor3 = new
HandlerMethodDescriptor
106
var descriptor1 = new
HandlerMethodDescriptor
111
var descriptor2 = new
HandlerMethodDescriptor
118
var descriptor3 = new
HandlerMethodDescriptor
159
var descriptor1 = new
HandlerMethodDescriptor
164
var descriptor2 = new
HandlerMethodDescriptor
201
var descriptor = new
HandlerMethodDescriptor
239
var descriptor1 = new
HandlerMethodDescriptor
243
var descriptor2 = new
HandlerMethodDescriptor
280
var descriptor1 = new
HandlerMethodDescriptor
286
var descriptor2 = new
HandlerMethodDescriptor
330
var descriptor1 = new
HandlerMethodDescriptor
336
var descriptor2 = new
HandlerMethodDescriptor
381
var descriptor1 = new
HandlerMethodDescriptor
387
var descriptor2 = new
HandlerMethodDescriptor
431
var descriptor1 = new
HandlerMethodDescriptor
437
var descriptor2 = new
HandlerMethodDescriptor
476
var descriptor1 = new
HandlerMethodDescriptor
482
var descriptor2 = new
HandlerMethodDescriptor
527
var descriptor1 = new
HandlerMethodDescriptor
533
var descriptor2 = new
HandlerMethodDescriptor
572
var descriptor1 = new
HandlerMethodDescriptor
578
var descriptor2 = new
HandlerMethodDescriptor
621
var descriptor1 = new
HandlerMethodDescriptor
627
var descriptor2 = new
HandlerMethodDescriptor
633
var descriptor3 = new
HandlerMethodDescriptor
673
var descriptor1 = new
HandlerMethodDescriptor
680
var descriptor2 = new
HandlerMethodDescriptor
687
var descriptor3 = new
HandlerMethodDescriptor
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (4)
16
var context = GetContext(new
HandlerMethodDescriptor
());
31
var context = GetContext(new
HandlerMethodDescriptor
());
79
var context = GetContext(new
HandlerMethodDescriptor
());
96
var context = GetContext(new
HandlerMethodDescriptor
());
Infrastructure\ExecutorFactoryTest.cs (8)
16
var handler = new
HandlerMethodDescriptor
()
36
var handler = new
HandlerMethodDescriptor
()
57
var handler = new
HandlerMethodDescriptor
()
78
var handler = new
HandlerMethodDescriptor
()
101
var handler = new
HandlerMethodDescriptor
()
125
var handler = new
HandlerMethodDescriptor
()
146
var handler = new
HandlerMethodDescriptor
()
171
var handler = new
HandlerMethodDescriptor
()
Infrastructure\PageActionInvokerTest.cs (8)
1458
actionDescriptor.HandlerMethods.Add(new
HandlerMethodDescriptor
()
1467
actionDescriptor.HandlerMethods.Add(new
HandlerMethodDescriptor
()
1590
new
HandlerMethodDescriptor
()
1596
new
HandlerMethodDescriptor
()
1618
new
HandlerMethodDescriptor
()
1624
new
HandlerMethodDescriptor
()
1646
new
HandlerMethodDescriptor
()
1652
new
HandlerMethodDescriptor
()
Infrastructure\PageBinderFactoryTest.cs (1)
764
new
HandlerMethodDescriptor
Infrastructure\PageHandlerPageFilterTest.cs (8)
28
new
HandlerMethodDescriptor
(),
34
new
HandlerMethodDescriptor
(),
76
new
HandlerMethodDescriptor
(),
82
new
HandlerMethodDescriptor
(),
119
new
HandlerMethodDescriptor
(),
125
new
HandlerMethodDescriptor
(),
152
new
HandlerMethodDescriptor
(),
158
new
HandlerMethodDescriptor
(),
PageLoggerExtensionsTest.cs (2)
140
var handler = new
HandlerMethodDescriptor
169
var handler = new
HandlerMethodDescriptor
PageModelTest.cs (4)
1854
new
HandlerMethodDescriptor
(),
1860
new
HandlerMethodDescriptor
(),
1888
new
HandlerMethodDescriptor
(),
1894
new
HandlerMethodDescriptor
(),
103 references to HandlerMethodDescriptor
Microsoft.AspNetCore.Mvc.RazorPages (38)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
75
internal static
HandlerMethodDescriptor
[] CreateHandlerMethods(PageApplicationModel applicationModel)
78
var handlerDescriptors = new
HandlerMethodDescriptor
[handlerModels.Count];
CompiledPageActionDescriptor.cs (1)
35
public IList<
HandlerMethodDescriptor
> HandlerMethods { get; set; } = default!;
Diagnostics\MvcDiagnostics.cs (4)
27
public BeforeHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object?> arguments,
HandlerMethodDescriptor
handlerMethodDescriptor, object instance)
48
public
HandlerMethodDescriptor
HandlerMethodDescriptor { get; }
87
public AfterHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object?> arguments,
HandlerMethodDescriptor
handlerMethodDescriptor, object instance, IActionResult? result)
109
public
HandlerMethodDescriptor
HandlerMethodDescriptor { get; }
Filters\PageHandlerExecutedContext.cs (2)
30
HandlerMethodDescriptor
? handlerMethod,
59
public virtual
HandlerMethodDescriptor
? HandlerMethod { get; }
Filters\PageHandlerExecutingContext.cs (2)
27
HandlerMethodDescriptor
? handlerMethod,
60
public virtual
HandlerMethodDescriptor
? HandlerMethod { get; }
Filters\PageHandlerSelectedContext.cs (1)
42
public virtual
HandlerMethodDescriptor
? HandlerMethod { get; set; }
Infrastructure\DefaultPageHandlerMethodSelector.cs (11)
14
public
HandlerMethodDescriptor
? Select(PageContext context)
22
List<
HandlerMethodDescriptor
>? ambiguousMatches = null;
23
HandlerMethodDescriptor
? bestMatch = null;
28
var
handler = handlers[i];
39
ambiguousMatches = new List<
HandlerMethodDescriptor
>
64
private static List<
HandlerMethodDescriptor
> SelectHandlers(PageContext context)
67
var candidates = new List<
HandlerMethodDescriptor
>();
91
var
handler = handlers[i];
107
var
handler = handlers[i];
120
var
handler = candidates[i];
131
private static int GetScore(
HandlerMethodDescriptor
descriptor)
Infrastructure\ExecutorFactory.cs (2)
13
public static PageHandlerExecutorDelegate CreateExecutor(
HandlerMethodDescriptor
handlerDescriptor)
22
private static HandlerMethod CreateHandlerMethod(
HandlerMethodDescriptor
handlerDescriptor)
Infrastructure\IPageHandlerMethodSelector.cs (2)
15
/// <returns>The selected <see cref="
HandlerMethodDescriptor
"/>.</returns>
16
HandlerMethodDescriptor
? Select(PageContext context);
Infrastructure\PageActionInvoker.cs (4)
25
private
HandlerMethodDescriptor
? _handler;
173
private
HandlerMethodDescriptor
? SelectHandler()
220
HandlerMethodDescriptor
handler)
250
var
handler = _handler;
Infrastructure\PageBinderFactory.cs (1)
87
HandlerMethodDescriptor
handler)
MvcRazorPagesDiagnosticListenerExtensions.cs (4)
16
HandlerMethodDescriptor
handlerMethodDescriptor,
33
private static void BeforeHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext,
HandlerMethodDescriptor
handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance)
51
HandlerMethodDescriptor
handlerMethodDescriptor,
69
private static void AfterHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext,
HandlerMethodDescriptor
handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance, IActionResult? result)
PageLoggerExtensions.cs (2)
85
public static void ExecutingHandlerMethod(this ILogger logger, PageContext context,
HandlerMethodDescriptor
handler, object?[]? arguments)
124
public static void ExecutedHandlerMethod(this ILogger logger,
HandlerMethodDescriptor
handler, IActionResult? result)
Microsoft.AspNetCore.Mvc.RazorPages.Test (65)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (48)
16
var
descriptor1 = new HandlerMethodDescriptor
21
var
descriptor2 = new HandlerMethodDescriptor
30
HandlerMethods = new List<
HandlerMethodDescriptor
>()
58
var
descriptor1 = new HandlerMethodDescriptor
63
var
descriptor2 = new HandlerMethodDescriptor
68
var
descriptor3 = new HandlerMethodDescriptor
77
HandlerMethods = new List<
HandlerMethodDescriptor
>()
106
var
descriptor1 = new HandlerMethodDescriptor
111
var
descriptor2 = new HandlerMethodDescriptor
118
var
descriptor3 = new HandlerMethodDescriptor
128
HandlerMethods = new List<
HandlerMethodDescriptor
>()
159
var
descriptor1 = new HandlerMethodDescriptor
164
var
descriptor2 = new HandlerMethodDescriptor
173
HandlerMethods = new List<
HandlerMethodDescriptor
>()
201
var
descriptor = new HandlerMethodDescriptor
210
HandlerMethods = new List<
HandlerMethodDescriptor
>()
239
var
descriptor1 = new HandlerMethodDescriptor
243
var
descriptor2 = new HandlerMethodDescriptor
252
HandlerMethods = new List<
HandlerMethodDescriptor
>()
280
var
descriptor1 = new HandlerMethodDescriptor
286
var
descriptor2 = new HandlerMethodDescriptor
296
HandlerMethods = new List<
HandlerMethodDescriptor
>()
330
var
descriptor1 = new HandlerMethodDescriptor
336
var
descriptor2 = new HandlerMethodDescriptor
346
HandlerMethods = new List<
HandlerMethodDescriptor
>()
381
var
descriptor1 = new HandlerMethodDescriptor
387
var
descriptor2 = new HandlerMethodDescriptor
397
HandlerMethods = new List<
HandlerMethodDescriptor
>()
431
var
descriptor1 = new HandlerMethodDescriptor
437
var
descriptor2 = new HandlerMethodDescriptor
447
HandlerMethods = new List<
HandlerMethodDescriptor
>()
476
var
descriptor1 = new HandlerMethodDescriptor
482
var
descriptor2 = new HandlerMethodDescriptor
492
HandlerMethods = new List<
HandlerMethodDescriptor
>()
527
var
descriptor1 = new HandlerMethodDescriptor
533
var
descriptor2 = new HandlerMethodDescriptor
543
HandlerMethods = new List<
HandlerMethodDescriptor
>()
572
var
descriptor1 = new HandlerMethodDescriptor
578
var
descriptor2 = new HandlerMethodDescriptor
587
HandlerMethods = new List<
HandlerMethodDescriptor
>()
621
var
descriptor1 = new HandlerMethodDescriptor
627
var
descriptor2 = new HandlerMethodDescriptor
633
var
descriptor3 = new HandlerMethodDescriptor
642
HandlerMethods = new List<
HandlerMethodDescriptor
>()
673
var
descriptor1 = new HandlerMethodDescriptor
680
var
descriptor2 = new HandlerMethodDescriptor
687
var
descriptor3 = new HandlerMethodDescriptor
696
HandlerMethods = new List<
HandlerMethodDescriptor
>()
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
125
private static PageHandlerExecutingContext GetContext(
HandlerMethodDescriptor
handlerMethodDescriptor)
Infrastructure\ExecutorFactoryTest.cs (8)
16
var
handler = new HandlerMethodDescriptor()
36
var
handler = new HandlerMethodDescriptor()
57
var
handler = new HandlerMethodDescriptor()
78
var
handler = new HandlerMethodDescriptor()
101
var
handler = new HandlerMethodDescriptor()
125
var
handler = new HandlerMethodDescriptor()
146
var
handler = new HandlerMethodDescriptor()
171
var
handler = new HandlerMethodDescriptor()
Infrastructure\PageActionInvokerTest.cs (6)
359
HandlerMethodDescriptor
handler = null;
413
HandlerMethodDescriptor
handler = null;
1447
HandlerMethods = new List<
HandlerMethodDescriptor
>(),
1588
HandlerMethods = new
HandlerMethodDescriptor
[]
1616
HandlerMethods = new
HandlerMethodDescriptor
[]
1644
HandlerMethods = new
HandlerMethodDescriptor
[]
PageLoggerExtensionsTest.cs (2)
140
var
handler = new HandlerMethodDescriptor
169
var
handler = new HandlerMethodDescriptor