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