107 instantiations of ControllerActionDescriptor
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\IncomingHttpRouteUtilityTests.cs (9)
28ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 66ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 106ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 148ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 190ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 237ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 278ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 326ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 371ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
ApiResponseTypeProviderTest.cs (2)
88var actionDescriptor = new ControllerActionDescriptor 787var actionDescriptor = new ControllerActionDescriptor
DefaultApiDescriptionProviderTest.cs (3)
53var action = new ControllerActionDescriptor(); 2214var context = new ApiParameterContext(new EmptyModelMetadataProvider(), new ControllerActionDescriptor(), new TemplatePart[0]); 2297var action = new ControllerActionDescriptor();
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
32var actionDescriptor = new ControllerActionDescriptor
Microsoft.AspNetCore.Mvc.Core.Test (77)
ActionConstraints\ActionConstraintCacheTest.cs (3)
22var action = new ControllerActionDescriptor() 59var action = new ControllerActionDescriptor() 96var action = new ControllerActionDescriptor()
ControllerBaseTest.cs (2)
2340new ControllerActionDescriptor())); 2460new ControllerActionDescriptor()));
Controllers\ControllerActivatorProviderTest.cs (5)
24var descriptor = new ControllerActionDescriptor 45var descriptor = new ControllerActionDescriptor 78var descriptor = new ControllerActionDescriptor 97var descriptor = new ControllerActionDescriptor 115var descriptor = new ControllerActionDescriptor
Controllers\ControllerBinderDelegateProviderTest.cs (3)
1128var actionDescriptor = new ControllerActionDescriptor() 1205var actionDescriptor = new ControllerActionDescriptor() 1271return new ControllerActionDescriptor
Controllers\ControllerFactoryProviderTest.cs (5)
24var descriptor = new ControllerActionDescriptor 50var descriptor = new ControllerActionDescriptor 75var descriptor = new ControllerActionDescriptor 128var descriptor = new ControllerActionDescriptor 164var descriptor = new ControllerActionDescriptor
Controllers\DefaultControllerActivatorTest.cs (2)
34new ControllerActionDescriptor 134new ControllerActionDescriptor
Controllers\DefaultControllerFactoryTest.cs (6)
20var actionDescriptor = new ControllerActionDescriptor 54var actionDescriptor = new ControllerActionDescriptor 81var actionDescriptor = new ControllerActionDescriptor 108var actionDescriptor = new ControllerActionDescriptor 135var actionDescriptor = new ControllerActionDescriptor 163var actionDescriptor = new ControllerActionDescriptor
Controllers\ServiceBasedControllerActivatorTest.cs (2)
30new ControllerActionDescriptor 60new ControllerActionDescriptor
Filters\MiddlewareFilterTest.cs (1)
235var actionDescriptor = new ControllerActionDescriptor()
Infrastructure\ActionMethodExecutorTest.cs (16)
22var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 48var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 74var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 99var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 128var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 157var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 186var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 211var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 237var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 263var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 288var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 314var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 343var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 372var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 397var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(), 426var filterContext = new ControllerEndpointFilterInvocationContext(new Controllers.ControllerActionDescriptor(),
Infrastructure\ActionSelectorTest.cs (1)
1121var actionDescriptor = new ControllerActionDescriptor()
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
114var actionDescriptor = new ControllerActionDescriptor()
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
48var actionDescriptor = new ControllerActionDescriptor
Infrastructure\ControllerActionInvokerTest.cs (8)
33var actionDescriptor = new ControllerActionDescriptor() 74var actionDescriptor = new ControllerActionDescriptor() 105var actionDescriptor = new ControllerActionDescriptor() 148var actionDescriptor = new ControllerActionDescriptor() 1383var actionDescriptor = new ControllerActionDescriptor 1555var actionDescriptor = new ControllerActionDescriptor() 1605var actionDescriptor = new ControllerActionDescriptor() 1647var actionDescriptor = new ControllerActionDescriptor()
MvcCoreLoggerExtensionsTest.cs (3)
43var action = new Controllers.ControllerActionDescriptor 437ActionDescriptor = new Controllers.ControllerActionDescriptor 465ActionDescriptor = new Controllers.ControllerActionDescriptor
Routing\AttributeRoutingTest.cs (1)
116var action = new ControllerActionDescriptor();
Routing\ControllerActionEndpointDataSourceTest.cs (13)
54new ControllerActionDescriptor 67new ControllerActionDescriptor 134new ControllerActionDescriptor 146new ControllerActionDescriptor 215new ControllerActionDescriptor 228new ControllerActionDescriptor 303new ControllerActionDescriptor 315new ControllerActionDescriptor 384new ControllerActionDescriptor 397new ControllerActionDescriptor 485new ControllerActionDescriptor 497new ControllerActionDescriptor 565var action = new ControllerActionDescriptor();
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (3)
20new ControllerActionDescriptor() 28new ControllerActionDescriptor() 36new ControllerActionDescriptor()
Routing\KnownRouteValueConstraintTests.cs (1)
296var actionDescriptor = new ControllerActionDescriptor()
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
AuthorizeFilterIntegrationTest.cs (4)
40var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 68var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 99var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor()); 135var actionContext = new ActionContext(GetHttpContext(), new RouteData(), new ControllerActionDescriptor());
ModelBindingTestHelper.cs (1)
35ActionDescriptor = actionDescriptor ?? new ControllerActionDescriptor(),
ValidationIntegrationTests.cs (2)
87var actionDescriptor = new ControllerActionDescriptor() 129var actionDescriptor = new ControllerActionDescriptor()
ValidationWithRecordIntegrationTests.cs (2)
79var actionDescriptor = new ControllerActionDescriptor() 121var actionDescriptor = new ControllerActionDescriptor()
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageViewLocationExpanderTest.cs (1)
52context.ActionContext.ActionDescriptor = new ControllerActionDescriptor();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
ControllerTest.cs (1)
412new ControllerActionDescriptor());
ControllerUnitTestabilityTests.cs (1)
594var actionDescriptor = new ControllerActionDescriptor();
PartialViewResultExecutorTest.cs (1)
338return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
ViewResultExecutorTest.cs (1)
328return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
186var action = new ControllerActionDescriptor();
340 references to ControllerActionDescriptor
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
28if (context.ActionDescriptor is ControllerActionDescriptor controllerActionDescriptor &&
BasicWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
FormatterWebSite (1)
ValidateBodyParameterAttribute.cs (1)
30ActionName = ((ControllerActionDescriptor)context.ActionDescriptor).ActionName,
GenericHostWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
43var parameters = endpoint?.Metadata.GetMetadata<ControllerActionDescriptor>()?.Parameters;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\IncomingHttpRouteUtilityTests.cs (9)
28ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 66ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 106ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 148ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 190ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 237ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 278ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 326ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor(); 371ControllerActionDescriptor controllerActionDescriptor = new ControllerActionDescriptor();
Microsoft.AspNetCore.Mvc.ApiExplorer (13)
ApiParameterContext.cs (2)
14ControllerActionDescriptor actionDescriptor, 24public ControllerActionDescriptor ActionDescriptor { get; }
ApiResponseTypeProvider.cs (3)
30public ICollection<ApiResponseType> GetApiResponseTypes(ControllerActionDescriptor action) 58private static List<IApiResponseMetadataProvider> GetResponseMetadataAttributes(ControllerActionDescriptor action) 347private Type? GetDeclaredReturnType(ControllerActionDescriptor action)
DefaultApiDescriptionProvider.cs (8)
22/// by <see cref="ControllerActionDescriptor"/>. 66foreach (var action in context.Actions.OfType<ControllerActionDescriptor>()) 95ControllerActionDescriptor action, 363private static IEnumerable<string?> GetHttpMethods(ControllerActionDescriptor action) 375private static RouteTemplate? ParseTemplate(ControllerActionDescriptor action) 482private static IApiRequestMetadataProvider[]? GetRequestMetadataAttributes(ControllerActionDescriptor action) 499private static string? GetGroupName(ControllerActionDescriptor action, ApiDescriptionActionData extensionData)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (95)
ApiResponseTypeProviderTest.cs (19)
20var actionDescriptor = GetControllerActionDescriptor( 88var actionDescriptor = new ControllerActionDescriptor 141var actionDescriptor = GetControllerActionDescriptor( 199var actionDescriptor = GetControllerActionDescriptor( 232var actionDescriptor = GetControllerActionDescriptor( 288var actionDescriptor = GetControllerActionDescriptor( 329var actionDescriptor = GetControllerActionDescriptor( 382var actionDescriptor = GetControllerActionDescriptor( 424var actionDescriptor = GetControllerActionDescriptor( 475var actionDescriptor = GetControllerActionDescriptor( 521var actionDescriptor = GetControllerActionDescriptor( 569var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.PutModel)); 619var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.PutModel)); 652var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.PutModel)); 682var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.GetUser)); 712var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.GetUser)); 757var actionDescriptor = GetControllerActionDescriptor(typeof(TestController), nameof(TestController.GetIResult)); 784private static ControllerActionDescriptor GetControllerActionDescriptor(Type type, string name) 787var actionDescriptor = new ControllerActionDescriptor
DefaultApiDescriptionProviderTest.cs (76)
53var action = new ControllerActionDescriptor(); 66var action = CreateActionDescriptor(); 80var action = CreateActionDescriptor(); 95var action = CreateActionDescriptor(); 110var action = CreateActionDescriptor(); 126var action = CreateActionDescriptor(); 140var action = CreateActionDescriptor(); 175var action = CreateActionDescriptor(); 221var action = CreateActionDescriptor(nameof(FromRouting)); 254var action = CreateActionDescriptor(nameof(FromModelBinding)); 283var action = CreateActionDescriptor(nameof(FromModelBinding)); 305var action = CreateActionDescriptor(nameof(FromBody)); 328var action = CreateActionDescriptor(methodName); 359var action = CreateActionDescriptor(methodName); 384var action = CreateActionDescriptor(nameof(FromRouting)); 408var action = CreateActionDescriptor(); 426var action = CreateActionDescriptor(); 450var action = CreateActionDescriptor(); 473var action = CreateActionDescriptor(); 492var action = CreateActionDescriptor(nameof(ReturnsProduct)); 510var action = CreateActionDescriptor(methodName); 528var action = CreateActionDescriptor(methodName); 547var action = CreateActionDescriptor(methodName); 569var action = CreateActionDescriptor(methodName); 585var action = CreateActionDescriptor(nameof(ReturnsTaskOfProduct)); 601var action = CreateActionDescriptor(nameof(ReturnsValueTaskOfProduct)); 626var action = CreateActionDescriptor(methodName); 690var action = CreateActionDescriptor(methodName, controllerType); 800var action = CreateActionDescriptor(methodName, controllerType); 843var action = CreateActionDescriptor(methodName); 913var action = CreateActionDescriptor(methodName); 983var action = CreateActionDescriptor(methodName); 1053var action = CreateActionDescriptor(methodName); 1073var action = CreateActionDescriptor(methodName); 1107var action = CreateActionDescriptor(methodName); 1140var action = CreateActionDescriptor(nameof(ReturnsProduct)); 1156var action = CreateActionDescriptor(nameof(ReturnsProduct)); 1176var action = CreateActionDescriptor(nameof(ReturnsObject)); 1212var action = CreateActionDescriptor(nameof(AcceptsProduct)); 1226var action = CreateActionDescriptor(nameof(AcceptsProduct_Body)); 1245var action = CreateActionDescriptor(nameof(AcceptsProduct_Body)); 1267var action = CreateActionDescriptor(nameof(AcceptsProduct_Body)); 1285var action = CreateActionDescriptor(nameof(AcceptsProduct_Body)); 1315var action = CreateActionDescriptor(nameof(AcceptsProduct)); 1343var action = CreateActionDescriptor(nameof(RequiredParameter)); 1362var action = CreateActionDescriptor(nameof(AcceptsId_Route)); 1379var action = CreateActionDescriptor(nameof(AcceptsId_Query)); 1396var action = CreateActionDescriptor(nameof(AcceptsProduct_Body)); 1413var action = CreateActionDescriptor(nameof(AcceptsProduct_Form)); 1441var action = CreateActionDescriptor(nameof(AcceptsFormFile)); 1466var action = CreateActionDescriptor(nameof(AcceptsId_Header)); 1484var action = CreateActionDescriptor(nameof(AcceptsFormatters_Services)); 1498var action = CreateActionDescriptor(nameof(AcceptsProduct_Custom)); 1515var action = CreateActionDescriptor(nameof(AcceptsProduct_Default)); 1543var action = CreateActionDescriptor(nameof(AcceptsProductChangeDTO)); 1574var action = CreateActionDescriptor(nameof(AcceptsEmployee)); 1593var action = CreateActionDescriptor(nameof(AcceptsTryParsablePrimitiveType)); 1612var action = CreateActionDescriptor(nameof(AcceptsTryParsableNullablePrimitiveType)); 1631var action = CreateActionDescriptor(nameof(AcceptsTryParsableEmployee)); 1650var action = CreateActionDescriptor(nameof(AcceptsNullableTryParsableEmployee)); 1669var action = CreateActionDescriptor(nameof(AcceptsConvertibleEmployee)); 1688var action = CreateActionDescriptor(nameof(AcceptsNullableConvertibleEmployee)); 1707var action = CreateActionDescriptor(nameof(AcceptsManager)); 1731var action = CreateActionDescriptor(nameof(AcceptsProductChangeDTO_Query)); 1762var action = CreateActionDescriptor(nameof(AcceptsOrderDTO)); 1794var action = CreateActionDescriptor(nameof(AcceptsOrderDTO_Query)); 1825var action = CreateActionDescriptor(nameof(AcceptsMultipleProperties)); 1853var action = CreateActionDescriptor(nameof(AcceptsMultiplePropertiesNested)); 1885var action = CreateActionDescriptor(nameof(AcceptsCycle)); 1903var action = CreateActionDescriptor(nameof(AcceptsHasCollection)); 1922var action = CreateActionDescriptor(nameof(AcceptsHasCollection_Complex)); 1940var action = CreateActionDescriptor(nameof(AcceptsRedundantMetadata)); 1965var action = CreateActionDescriptor(nameof(AcceptsPerson)); 1987var action = CreateActionDescriptor("FromQueryName", typeof(TestController)); 2295private ControllerActionDescriptor CreateActionDescriptor(string methodName = null, Type controllerType = null) 2297var action = new ControllerActionDescriptor();
Microsoft.AspNetCore.Mvc.Core (60)
ApplicationModels\ControllerActionDescriptorBuilder.cs (11)
16/// Creates instances of <see cref="ControllerActionDescriptor"/> from application model 21public static IList<ControllerActionDescriptor> Build(ApplicationModel application) 26private static ControllerActionDescriptor CreateActionDescriptor( 32var actionDescriptor = new ControllerActionDescriptor 101ControllerActionDescriptor actionDescriptor, 146ControllerActionDescriptor actionDescriptor, 168ControllerActionDescriptor actionDescriptor, 181private static void AddActionConstraints(ControllerActionDescriptor actionDescriptor, SelectorModel selectorModel) 189private static void AddEndpointMetadata(ControllerActionDescriptor actionDescriptor, SelectorModel selectorModel) 197private static void AddAttributeRoute(ControllerActionDescriptor actionDescriptor, SelectorModel selectorModel) 213ControllerActionDescriptor actionDescriptor,
ApplicationModels\ControllerActionDescriptorProvider.cs (2)
34foreach (var descriptor in GetDescriptors()) 75internal IEnumerable<ControllerActionDescriptor> GetDescriptors()
ControllerContext.cs (7)
38if (context.ActionDescriptor is not ControllerActionDescriptor) 41typeof(ControllerActionDescriptor)), 51/// <param name="actionDescriptor">The <see cref="ControllerActionDescriptor"/> for the selected action.</param> 55ControllerActionDescriptor actionDescriptor) 61/// Gets or sets the <see cref="ControllerActionDescriptor"/> associated with the current request. 63public new ControllerActionDescriptor ActionDescriptor 65get { return (ControllerActionDescriptor)base.ActionDescriptor; }
Controllers\ControllerActivatorProvider.cs (3)
40public Func<ControllerContext, object> CreateActivator(ControllerActionDescriptor descriptor) 63public Action<ControllerContext, object>? CreateReleaser(ControllerActionDescriptor descriptor) 81public Func<ControllerContext, object, ValueTask>? CreateAsyncReleaser(ControllerActionDescriptor descriptor)
Controllers\ControllerBinderDelegateProvider.cs (3)
18ControllerActionDescriptor actionDescriptor, 119ControllerActionDescriptor actionDescriptor) 165ControllerActionDescriptor actionDescriptor)
Controllers\ControllerFactoryProvider.cs (4)
38public Func<ControllerContext, object> CreateControllerFactory(ControllerActionDescriptor descriptor) 73public Action<ControllerContext, object>? CreateControllerReleaser(ControllerActionDescriptor descriptor) 94public Func<ControllerContext, object, ValueTask>? CreateAsyncControllerReleaser(ControllerActionDescriptor descriptor) 115private Action<ControllerContext, object>[] GetPropertiesToActivate(ControllerActionDescriptor actionDescriptor)
Controllers\DefaultControllerPropertyActivator.cs (1)
33public Action<ControllerContext, object> GetActivatorDelegate(ControllerActionDescriptor actionDescriptor)
Controllers\IControllerActivatorProvider.cs (6)
14/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 16Func<ControllerContext, object> CreateActivator(ControllerActionDescriptor descriptor); 21/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 23Action<ControllerContext, object>? CreateReleaser(ControllerActionDescriptor descriptor); 28/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 30Func<ControllerContext, object, ValueTask>? CreateAsyncReleaser(ControllerActionDescriptor descriptor)
Controllers\IControllerFactoryProvider.cs (6)
14/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 16Func<ControllerContext, object> CreateControllerFactory(ControllerActionDescriptor descriptor); 21/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 23Action<ControllerContext, object>? CreateControllerReleaser(ControllerActionDescriptor descriptor); 28/// <param name="descriptor">The <see cref="ControllerActionDescriptor"/>.</param> 30Func<ControllerContext, object, ValueTask>? CreateAsyncControllerReleaser(ControllerActionDescriptor descriptor)
Controllers\IControllerPropertyActivatorFactory.cs (1)
10Action<ControllerContext, object> GetActivatorDelegate(ControllerActionDescriptor actionDescriptor);
Infrastructure\ActionMethodExecutor.cs (3)
56public static ActionMethodExecutor GetFilterExecutor(ControllerActionDescriptor actionDescriptor) => 61private readonly ControllerActionDescriptor _controllerActionDescriptor; 63public FilterActionMethodExecutor(ControllerActionDescriptor controllerActionDescriptor)
Infrastructure\ControllerActionInvoker.cs (1)
516var actionDescriptor = _controllerContext.ActionDescriptor;
Infrastructure\ControllerActionInvokerCache.cs (1)
42var actionDescriptor = controllerContext.ActionDescriptor;
Infrastructure\ControllerActionInvokerProvider.cs (1)
64if (context.ActionContext.ActionDescriptor is ControllerActionDescriptor)
Infrastructure\ControllerEndpointFilterInvocationContext.cs (2)
15ControllerActionDescriptor actionDescriptor, 38internal ControllerActionDescriptor ActionDescriptor { get; }
Infrastructure\ResourceInvoker.Log.cs (1)
48if (action is ControllerActionDescriptor controllerActionDescriptor)
MvcOptions.cs (1)
271/// <see cref="ControllerActionDescriptor.ActionName"/> is used to construct the route to the action as
Routing\ActionEndpointFactory.cs (2)
352var controllerActionDescriptor = action as ControllerActionDescriptor;
Routing\ControllerActionEndpointDataSource.cs (1)
89if (actions[i] is ControllerActionDescriptor action)
Routing\ControllerRequestDelegateFactory.cs (1)
63if (_enableActionInvokers || actionDescriptor is not ControllerActionDescriptor controller)
Routing\IRouteValueProvider.cs (2)
24/// matching values for its <see cref="ControllerActionDescriptor.ControllerName"/> and 25/// <see cref="ControllerActionDescriptor.ActionName"/>
Microsoft.AspNetCore.Mvc.Core.Test (131)
ActionConstraints\ActionConstraintCacheTest.cs (3)
22var action = new ControllerActionDescriptor() 59var action = new ControllerActionDescriptor() 96var action = new ControllerActionDescriptor()
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (1)
49var controllerDescriptor = Assert.Single(descriptors);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (48)
45var descriptor = descriptors.Single(ad => ad.ActionName == nameof(PersonController.GetPerson)); 63var descriptor = Assert.Single(descriptors); 89var descriptor = Assert.Single(descriptors); 106var descriptor = Assert.Single(descriptors); 123var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 142var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 167var main = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 200var fromBody = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 221var notFromBody = Assert.Single(descriptors.Cast<ControllerActionDescriptor>(), 311.OfType<ControllerActionDescriptor>() 321Action<ControllerActionDescriptor> InspectElement(string httpMethod) 411var action = Assert.Single(actions); 456foreach (var action in actions) 481foreach (var action in actions) 506var action = Assert.Single(descriptors, d => d.ActionName == "AcceptVerbsOverride"); 533foreach (var action in actions) 572foreach (var action in actions) 616var controllerAndAction = Assert.Single(actions, a => a.ActionName.Equals(firstActionName)); 619var controllerActionAndOverride = Assert.Single(actions, a => a.ActionName.Equals(secondActionName)); 644var action = Assert.Single( 741var action = Assert.Single(actions); 791foreach (var descriptor in descriptors) 814foreach (var getAction in getActions) 821var editAction = Assert.Single(actions, a => a.ActionName.Equals(editActionName)); 842foreach (var getAction in getActions) 853var editAction = Assert.Single(actions, a => a.ActionName.Equals(editActionName)); 901var indexAction = Assert.Single(actionDescriptors, ad => ad.ActionName.Equals("Index")); 925var action = Assert.Single(actions); 940var action = Assert.Single(actions); 954var action = Assert.Single(actions); 970var action = Assert.Single(actions, a => a.ActionName == "Edit"); 990var action = Assert.Single(actions); 1005var action = Assert.Single(actions); 1020var action = Assert.Single(actions); 1034var action = Assert.Single(actions); 1050var action = Assert.Single(actions, a => a.ActionName == "Edit"); 1068var action = Assert.Single(actions); 1085var action = Assert.Single(actions); 1119var action = Assert.Single(actions); 1190var action = Assert.Single(actions, a => a.AttributeRouteInfo.Template == "R1"); 1216var action = Assert.Single(actions, a => a.AttributeRouteInfo.Template == "C1/A1"); 1243var action = Assert.Single(actions, a => a.AttributeRouteInfo.Template == "C1/A3"); 1282var action = Assert.Single(actions, a => a.AttributeRouteInfo.Template == "A2");
ApplicationModels\EndpointMetadataProviderTest.cs (3)
125m => Assert.True(m is ControllerActionDescriptor), 253var descriptorsWithMatchingActionName = new List<ControllerActionDescriptor>(); 257if (descriptor is ControllerActionDescriptor cad &&
Controllers\ControllerActivatorProviderTest.cs (5)
24var descriptor = new ControllerActionDescriptor 45var descriptor = new ControllerActionDescriptor 78var descriptor = new ControllerActionDescriptor 97var descriptor = new ControllerActionDescriptor 115var descriptor = new ControllerActionDescriptor
Controllers\ControllerBinderDelegateProviderTest.cs (24)
32var actionDescriptor = GetActionDescriptor(); 88var actionDescriptor = GetActionDescriptor(); 143var actionDescriptor = GetActionDescriptor(); 185var actionDescriptor = GetActionDescriptor(); 227var actionDescriptor = GetActionDescriptor(); 278var actionDescriptor = GetActionDescriptor(); 328var actionDescriptor = GetActionDescriptor(); 376var actionDescriptor = GetActionDescriptor(); 426var actionDescriptor = GetActionDescriptor(); 474var actionDescriptor = GetActionDescriptor(); 522var actionDescriptor = GetActionDescriptor(); 569var actionDescriptor = GetActionDescriptor(); 618var actionDescriptor = GetActionDescriptor(); 657var actionDescriptor = GetActionDescriptor(); 697var actionDescriptor = GetActionDescriptor(); 738var actionDescriptor = GetActionDescriptor(); 779var actionDescriptor = GetActionDescriptor(); 842var actionDescriptor = GetActionDescriptor(); 951var actionDescriptor = GetActionDescriptor(); 1007var actionDescriptor = GetActionDescriptor(); 1128var actionDescriptor = new ControllerActionDescriptor() 1205var actionDescriptor = new ControllerActionDescriptor() 1249private static ControllerContext GetControllerContext(ControllerActionDescriptor descriptor = null) 1268private static ControllerActionDescriptor GetActionDescriptor()
Controllers\ControllerFactoryProviderTest.cs (9)
24var descriptor = new ControllerActionDescriptor 50var descriptor = new ControllerActionDescriptor 75var descriptor = new ControllerActionDescriptor 99activatorProvider.Setup(p => p.CreateActivator(It.IsAny<ControllerActionDescriptor>())) 104propertyActivator1.Setup(p => p.GetActivatorDelegate(It.IsAny<ControllerActionDescriptor>())) 112propertyActivator2.Setup(p => p.GetActivatorDelegate(It.IsAny<ControllerActionDescriptor>())) 128var descriptor = new ControllerActionDescriptor 157activatorProvider.Setup(p => p.CreateReleaser(It.IsAny<ControllerActionDescriptor>())) 164var descriptor = new ControllerActionDescriptor
Controllers\DefaultControllerFactoryTest.cs (6)
20var actionDescriptor = new ControllerActionDescriptor 54var actionDescriptor = new ControllerActionDescriptor 81var actionDescriptor = new ControllerActionDescriptor 108var actionDescriptor = new ControllerActionDescriptor 135var actionDescriptor = new ControllerActionDescriptor 163var actionDescriptor = new ControllerActionDescriptor
Filters\MiddlewareFilterTest.cs (5)
235var actionDescriptor = new ControllerActionDescriptor() 258ControllerActionDescriptor actionDescriptor, 404CreateCacheEntry((ControllerActionDescriptor)actionContext.ActionDescriptor, controllerFactory), 420private static ObjectMethodExecutor CreateExecutor(ControllerActionDescriptor actionDescriptor) 440ControllerActionDescriptor actionDescriptor,
Infrastructure\ActionSelectorTest.cs (9)
861var result = InvokeActionSelector(routeContext); 882var result = InvokeActionSelector(routeContext); 899var result = InvokeActionSelector(routeContext); 915var result = actionDescriptorProvider 937var result = InvokeActionSelector(routeContext); 967var result = InvokeActionSelector(routeContext); 973private ControllerActionDescriptor InvokeActionSelector(RouteContext context) 992return (ControllerActionDescriptor)actionSelector.SelectBestCandidate(context, candidates); 1121var actionDescriptor = new ControllerActionDescriptor()
Infrastructure\ControllerActionInvokerCacheTest.cs (2)
83public CustomActionDescriptorCollectionProvider(ControllerActionDescriptor[] actionDescriptors) 114var actionDescriptor = new ControllerActionDescriptor()
Infrastructure\ControllerActionInvokerProviderTest.cs (2)
45private static ControllerActionDescriptor GetControllerActionDescriptor() 48var actionDescriptor = new ControllerActionDescriptor
Infrastructure\ControllerActionInvokerTest.cs (10)
33var actionDescriptor = new ControllerActionDescriptor() 74var actionDescriptor = new ControllerActionDescriptor() 105var actionDescriptor = new ControllerActionDescriptor() 148var actionDescriptor = new ControllerActionDescriptor() 1383var actionDescriptor = new ControllerActionDescriptor 1555var actionDescriptor = new ControllerActionDescriptor() 1605var actionDescriptor = new ControllerActionDescriptor() 1647var actionDescriptor = new ControllerActionDescriptor() 1673ControllerActionDescriptor actionDescriptor, 1966private static ObjectMethodExecutor CreateExecutor(ControllerActionDescriptor actionDescriptor)
MvcCoreLoggerExtensionsTest.cs (1)
43var action = new Controllers.ControllerActionDescriptor
Routing\AttributeRoutingTest.cs (1)
116var action = new ControllerActionDescriptor();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
565var action = new ControllerActionDescriptor();
Routing\KnownRouteValueConstraintTests.cs (1)
296var actionDescriptor = new ControllerActionDescriptor()
Microsoft.AspNetCore.Mvc.IntegrationTests (5)
ModelBindingTestHelper.cs (1)
24ControllerActionDescriptor actionDescriptor = null,
ValidationIntegrationTests.cs (2)
87var actionDescriptor = new ControllerActionDescriptor() 129var actionDescriptor = new ControllerActionDescriptor()
ValidationWithRecordIntegrationTests.cs (2)
79var actionDescriptor = new ControllerActionDescriptor() 121var actionDescriptor = new ControllerActionDescriptor()
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
PartialViewResult.cs (1)
28/// When <c>null</c>, defaults to <see cref="ControllerActionDescriptor.ActionName"/>.
ViewDataDictionaryControllerPropertyActivator.cs (1)
53public Action<ControllerContext, object> GetActivatorDelegate(ControllerActionDescriptor actionDescriptor)
ViewResult.cs (1)
28/// When <c>null</c>, defaults to <see cref="ControllerActionDescriptor.ActionName"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerUnitTestabilityTests.cs (1)
594var actionDescriptor = new ControllerActionDescriptor();
Microsoft.AspNetCore.OpenApi.Tests (10)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Operations.cs (1)
224var action = CreateActionDescriptor(nameof(ActionWithRouteAttributeName));
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (1)
198var action = CreateActionDescriptor(nameof(ActionWithCustomBinder));
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (6)
507var action = CreateActionDescriptor(nameof(ActionWithFormModel)); 628var action = CreateActionDescriptor(nameof(ActionWithMultipleFormModel)); 696var action = CreateActionDescriptor(nameof(ActionWithFormModelSingleProp)); 736var action = CreateActionDescriptor(nameof(ActionWithFormModelNullableProps)); 778var action = CreateActionDescriptor(nameof(ActionWithFormModelWithFile)); 861var action = CreateActionDescriptor(actionMethodName);
Services\OpenApiDocumentServiceTestsBase.cs (2)
184public ControllerActionDescriptor CreateActionDescriptor(string methodName = null, Type controllerType = null) 186var action = new ControllerActionDescriptor();
Mvc.RoutingWebSite (4)
Controllers\RouteDataController.cs (1)
32context.RouteData.DataTokens.Add("actionName", ((ControllerActionDescriptor)context.ActionDescriptor).ActionName);
RemoveControllerActionDescriptorProvider.cs (1)
28if (item is ControllerActionDescriptor controllerActionDescriptor)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
VersioningWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (2)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,