24 writes to MethodInfo
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
ApiResponseTypeProviderTest.cs (2)
91MethodInfo = typeof(GetApiResponseTypes_ReturnsResponseTypesFromActionIfPresentController).GetMethod(nameof(GetApiResponseTypes_ReturnsResponseTypesFromActionIfPresentController.Get)), 789MethodInfo = method,
DefaultApiDescriptionProviderTest.cs (2)
2302action.MethodInfo = controllerType.GetMethod( 2325action.MethodInfo = GetType().GetMethod(
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
35MethodInfo = action.ActionMethod,
Microsoft.AspNetCore.Mvc.Core.Test (17)
Controllers\ControllerBinderDelegateProviderTest.cs (1)
1273MethodInfo = method.GetMethodInfo(),
Filters\MiddlewareFilterTest.cs (2)
243actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod( 248actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod(
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
117MethodInfo = typeof(TestController).GetMethod(nameof(TestController.Index)),
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
50MethodInfo = method,
Infrastructure\ControllerActionInvokerTest.cs (10)
40actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 81actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 112actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 161actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1387MethodInfo = typeof(TestController).GetTypeInfo() 1561MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)), 1615actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1623actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ThrowingActionMethod)); 1631actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1657actionDescriptor.MethodInfo = method;
MvcCoreLoggerExtensionsTest.cs (1)
47MethodInfo = typeof(object).GetMethod(nameof(ToString)),
Routing\AttributeRoutingTest.cs (1)
118action.MethodInfo = actionMethod;
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
191action.MethodInfo = controllerType.GetMethod( 214action.MethodInfo = GetType().GetMethod(
27 references to MethodInfo
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
29controllerActionDescriptor.MethodInfo.IsDefined(typeof(PassThruAttribute)))
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
349var declaredReturnType = action.MethodInfo.ReturnType;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2331foreach (var parameter in action.MethodInfo.GetParameters())
Microsoft.AspNetCore.Mvc.Core (9)
Controllers\ControllerActionDescriptor.cs (3)
31/// The <see cref="MethodInfo"/>. 50if (base.DisplayName == null && ControllerTypeInfo != null && MethodInfo != null) 56MethodInfo.Name,
Infrastructure\ControllerActionInvokerCache.cs (2)
55.GetParameterDefaultValues(actionDescriptor.MethodInfo); 58actionDescriptor.MethodInfo,
Infrastructure\ResourceInvoker.Log.cs (1)
55controllerActionDescriptor.MethodInfo,
Routing\ActionEndpointFactory.cs (3)
356if (controllerActionDescriptor?.MethodInfo is not null) 358EndpointMetadataPopulator.PopulateMetadata(controllerActionDescriptor.MethodInfo, builder); 469MethodInfo = controllerActionDescriptor.MethodInfo,
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
258cad.MethodInfo.Name == actionName)
Filters\MiddlewareFilterTest.cs (1)
422return ObjectMethodExecutor.Create(actionDescriptor.MethodInfo, actionDescriptor.ControllerTypeInfo);
Infrastructure\ControllerActionInvokerTest.cs (7)
1417actionDescriptor.MethodInfo, 1419ParameterDefaultValues.GetParameterDefaultValues(actionDescriptor.MethodInfo)); 1681Assert.NotNull(actionDescriptor.MethodInfo); 1740actionDescriptor.MethodInfo, 1742ParameterDefaultValues.GetParameterDefaultValues(actionDescriptor.MethodInfo)); 1969actionDescriptor.MethodInfo, 1971ParameterDefaultValues.GetParameterDefaultValues(actionDescriptor.MethodInfo));
Microsoft.AspNetCore.OpenApi.Tests (6)
Services\OpenApiDocumentServiceTestsBase.cs (6)
221Template = action.MethodInfo.GetCustomAttribute<RouteAttribute>()?.Template, 222Name = action.MethodInfo.GetCustomAttribute<RouteAttribute>()?.Name, 223Order = action.MethodInfo.GetCustomAttribute<RouteAttribute>()?.Order ?? 0, 226action.RouteValues.Add("action", action.MethodInfo.Name); 228action.EndpointMetadata = [..action.MethodInfo.GetCustomAttributes()]; 238foreach (var parameter in action.MethodInfo.GetParameters())