3 writes to MethodInfo
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
481MethodInfo = methodInfo,
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
469MethodInfo = controllerActionDescriptor.MethodInfo,
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
27MethodInfo = requestDelegate.Method,
13 references to MethodInfo
Microsoft.AspNetCore.Http.Abstractions (1)
EndpointFilterFactoryContext.cs (1)
15/// The <see cref="MethodInfo"/> associated with the current route handler, <see cref="RequestDelegate"/> or MVC action.
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ControllerEndpointFiltersTest.cs (1)
59Assert.True(content.TryGetValue(nameof(EndpointFilterFactoryContext.MethodInfo.Name), out var methodInfo));
Microsoft.AspNetCore.Routing (1)
ValidationEndpointFilterFactory.cs (1)
24var parameters = context.MethodInfo.GetParameters();
Microsoft.AspNetCore.Routing.Tests (4)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (4)
875Assert.NotNull(routeHandlerContext.MethodInfo); 876Assert.NotNull(routeHandlerContext.MethodInfo.DeclaringType); 878Assert.Equal("RouteHandlerEndpointRouteBuilderExtensionsTest", routeHandlerContext.MethodInfo.DeclaringType?.Name); 1085context.HttpContext.Items["parentName"] = _routeHandlerContext.MethodInfo.DeclaringType?.Name;
MinimalSample (1)
Program.cs (1)
46Console.WriteLine($"Building filter! Num args: {routeContext.MethodInfo.GetParameters().Length}");
Mvc.RoutingWebSite (5)
StartupForEndpointFilters.cs (5)
33ic.HttpContext.Items[nameof(EndpointFilterFactoryContext.MethodInfo.Name)] = context.MethodInfo.Name; 35if (context.MethodInfo.Name == "IndexWithSelectiveFilter") 43if (context.MethodInfo.GetParameters().Length >= 1 && context.MethodInfo.GetParameters()[0].ParameterType == typeof(string))