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