21 writes to HandlerMethods
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
52
HandlerMethods
= handlerMethods,
Microsoft.AspNetCore.Mvc.RazorPages.Test (20)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (15)
30
HandlerMethods
= new List<HandlerMethodDescriptor>()
77
HandlerMethods
= new List<HandlerMethodDescriptor>()
128
HandlerMethods
= new List<HandlerMethodDescriptor>()
173
HandlerMethods
= new List<HandlerMethodDescriptor>()
210
HandlerMethods
= new List<HandlerMethodDescriptor>()
252
HandlerMethods
= new List<HandlerMethodDescriptor>()
296
HandlerMethods
= new List<HandlerMethodDescriptor>()
346
HandlerMethods
= new List<HandlerMethodDescriptor>()
397
HandlerMethods
= new List<HandlerMethodDescriptor>()
447
HandlerMethods
= new List<HandlerMethodDescriptor>()
492
HandlerMethods
= new List<HandlerMethodDescriptor>()
543
HandlerMethods
= new List<HandlerMethodDescriptor>()
587
HandlerMethods
= new List<HandlerMethodDescriptor>()
642
HandlerMethods
= new List<HandlerMethodDescriptor>()
696
HandlerMethods
= new List<HandlerMethodDescriptor>()
Infrastructure\PageActionInvokerTest.cs (4)
1447
HandlerMethods
= new List<HandlerMethodDescriptor>(),
1588
HandlerMethods
= new HandlerMethodDescriptor[]
1616
HandlerMethods
= new HandlerMethodDescriptor[]
1644
HandlerMethods
= new HandlerMethodDescriptor[]
Infrastructure\PageBinderFactoryTest.cs (1)
762
HandlerMethods
= new[]
27 references to HandlerMethods
Microsoft.AspNetCore.Mvc.RazorPages (15)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
66
var handlers = context.ActionDescriptor.
HandlerMethods
;
Infrastructure\PageActionInvoker.cs (4)
204
for (var i = 0; i < _actionDescriptor.
HandlerMethods
.Count; i++)
206
if (object.ReferenceEquals(_handler, _actionDescriptor.
HandlerMethods
[i]))
258
for (var i = 0; i < _actionDescriptor.
HandlerMethods
.Count; i++)
260
if (object.ReferenceEquals(handler, _actionDescriptor.
HandlerMethods
[i]))
Infrastructure\PageActionInvokerCache.cs (10)
131
if (actionDescriptor.
HandlerMethods
== null || actionDescriptor.
HandlerMethods
.Count == 0)
136
var results = new PageHandlerExecutorDelegate[actionDescriptor.
HandlerMethods
.Count];
138
for (var i = 0; i < actionDescriptor.
HandlerMethods
.Count; i++)
140
results[i] = ExecutorFactory.CreateExecutor(actionDescriptor.
HandlerMethods
[i]);
148
if (actionDescriptor.
HandlerMethods
== null || actionDescriptor.
HandlerMethods
.Count == 0)
153
var results = new PageHandlerBinderDelegate[actionDescriptor.
HandlerMethods
.Count];
155
for (var i = 0; i < actionDescriptor.
HandlerMethods
.Count; i++)
162
actionDescriptor.
HandlerMethods
[i]);
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (1)
92
Assert.Equal(pageApplicationModel.HandlerMethods.Select(p => p.MethodInfo), actual.
HandlerMethods
.Select(p => p.MethodInfo));
Infrastructure\PageActionInvokerTest.cs (6)
366
handler = c.HandlerMethod = c.ActionDescriptor.
HandlerMethods
[1];
420
handler = c.HandlerMethod = c.ActionDescriptor.
HandlerMethods
[1];
1458
actionDescriptor.
HandlerMethods
.Add(new HandlerMethodDescriptor()
1467
actionDescriptor.
HandlerMethods
.Add(new HandlerMethodDescriptor()
1531
handlers = new PageHandlerExecutorDelegate[actionDescriptor.
HandlerMethods
.Count];
1562
.Returns<PageContext>(c => c.ActionDescriptor.
HandlerMethods
.FirstOrDefault());
Infrastructure\PageBinderFactoryTest.cs (4)
595
actionDescriptor.
HandlerMethods
[0]);
638
actionDescriptor.
HandlerMethods
[0]);
681
actionDescriptor.
HandlerMethods
[0]);
725
actionDescriptor.
HandlerMethods
[0]);
RazorPagesWebSite (1)
ModelWithPageFilter.cs (1)
30
context.HandlerMethod = context.ActionDescriptor.
HandlerMethods
.First(m => m.Name == "Edit");