22 writes to MethodInfo
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
88
MethodInfo
= handlerModel.MethodInfo,
Microsoft.AspNetCore.Mvc.RazorPages.Test (21)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (4)
623
MethodInfo
= GetType().GetMethod(nameof(Post)),
629
MethodInfo
= GetType().GetMethod(nameof(PostAsync)),
675
MethodInfo
= GetType().GetMethod(nameof(Post)),
682
MethodInfo
= GetType().GetMethod(nameof(PostAsync)),
Infrastructure\ExecutorFactoryTest.cs (8)
18
MethodInfo
= typeof(TestPage).GetMethod(nameof(TestPage.ActionResultReturningHandler)),
38
MethodInfo
= typeof(TestPage).GetMethod(nameof(TestPage.ConcreteActionResult)),
59
MethodInfo
= methodInfo,
80
MethodInfo
= typeof(TestPage).GetMethod(nameof(TestPage.VoidReturningHandler)),
103
MethodInfo
= typeof(TestPage).GetMethod(nameof(TestPage.VoidTaskReturningHandler)),
127
MethodInfo
= methodInfo,
148
MethodInfo
= methodInfo,
173
MethodInfo
= methodInfo,
Infrastructure\PageActionInvokerTest.cs (6)
1593
MethodInfo
= typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler1)),
1599
MethodInfo
= typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler2)),
1621
MethodInfo
= typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler1)),
1627
MethodInfo
= typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler2)),
1649
MethodInfo
= typeof(TestPageModel).GetTypeInfo().GetMethod(nameof(TestPageModel.OnGetHandler1)),
1655
MethodInfo
= typeof(TestPageModel).GetTypeInfo().GetMethod(nameof(TestPageModel.OnGetHandler2)),
Infrastructure\PageBinderFactoryTest.cs (1)
767
MethodInfo
= handlerMethodInfo,
PageLoggerExtensionsTest.cs (2)
143
MethodInfo
= typeof(ValueTuple<int, string>).GetMethod(nameof(ToString)),
172
MethodInfo
= typeof(ValueTuple<int, string>).GetMethod(nameof(ToString)),
12 references to MethodInfo
Microsoft.AspNetCore.Mvc.RazorPages (6)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
51
var ambiguousMethods = string.Join(", ", ambiguousMatches.Select(m => m.
MethodInfo
));
Infrastructure\ExecutorFactory.cs (1)
24
var method = handlerDescriptor.
MethodInfo
;
Infrastructure\HandlerMethodDescriptor.cs (1)
14
/// Gets or sets the <see cref="
MethodInfo
"/>.
PageLoggerExtensions.cs (3)
89
var declaringTypeName = TypeNameHelper.GetTypeDisplayName(handler.
MethodInfo
.DeclaringType);
90
var handlerName = declaringTypeName + "." + handler.
MethodInfo
.Name;
128
var handlerName = handler.
MethodInfo
.Name;
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
92
Assert.Equal(pageApplicationModel.HandlerMethods.Select(p => p.MethodInfo), actual.HandlerMethods.Select(p => p.
MethodInfo
));
235
Assert.Equal(handlerModel.MethodInfo, d.
MethodInfo
);
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (4)
662
var methods = descriptor1.
MethodInfo
+ ", " + descriptor2.
MethodInfo
;
722
var methods = descriptor1.
MethodInfo
+ ", " + descriptor2.
MethodInfo
;