3 types derived from ActionDescriptor
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
334 instantiations of ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (215)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors.Test (5)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.Razor.Test (14)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
Microsoft.AspNetCore.Mvc.Test (26)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (50)
Filters\SaveTempDataFilterTest.cs (4)
303var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
321new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
351new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
374return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewComponentResultTest.cs (4)
54var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor());
419var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
461var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
699return new ActionContext(CreateHttpContext(diagnosticListener, descriptors), new RouteData(), new ActionDescriptor());
505 references to ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Mvc.Abstractions (30)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (24)
Microsoft.AspNetCore.Mvc.Core (138)
Diagnostics\MvcDiagnostics.cs (48)
27public BeforeActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData)
37public ActionDescriptor ActionDescriptor { get; }
78public AfterActionEventData(ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData)
88public ActionDescriptor ActionDescriptor { get; }
129public BeforeAuthorizationFilterOnAuthorizationEventData(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter)
139public ActionDescriptor ActionDescriptor { get; }
180public AfterAuthorizationFilterOnAuthorizationEventData(ActionDescriptor actionDescriptor, AuthorizationFilterContext authorizationContext, IFilterMetadata filter)
190public ActionDescriptor ActionDescriptor { get; }
231public BeforeResourceFilterOnResourceExecutionEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter)
241public ActionDescriptor ActionDescriptor { get; }
282public AfterResourceFilterOnResourceExecutionEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter)
292public ActionDescriptor ActionDescriptor { get; }
333public BeforeResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter)
343public ActionDescriptor ActionDescriptor { get; }
384public AfterResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor, ResourceExecutingContext resourceExecutingContext, IFilterMetadata filter)
394public ActionDescriptor ActionDescriptor { get; }
435public BeforeResourceFilterOnResourceExecutedEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter)
445public ActionDescriptor ActionDescriptor { get; }
486public AfterResourceFilterOnResourceExecutedEventData(ActionDescriptor actionDescriptor, ResourceExecutedContext resourceExecutedContext, IFilterMetadata filter)
496public ActionDescriptor ActionDescriptor { get; }
537public BeforeExceptionFilterOnException(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter)
547public ActionDescriptor ActionDescriptor { get; }
588public AfterExceptionFilterOnExceptionEventData(ActionDescriptor actionDescriptor, ExceptionContext exceptionContext, IFilterMetadata filter)
598public ActionDescriptor ActionDescriptor { get; }
639public BeforeActionFilterOnActionExecutionEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter)
649public ActionDescriptor ActionDescriptor { get; }
690public AfterActionFilterOnActionExecutionEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter)
700public ActionDescriptor ActionDescriptor { get; }
741public BeforeActionFilterOnActionExecutingEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter)
751public ActionDescriptor ActionDescriptor { get; }
792public AfterActionFilterOnActionExecutingEventData(ActionDescriptor actionDescriptor, ActionExecutingContext actionExecutingContext, IFilterMetadata filter)
802public ActionDescriptor ActionDescriptor { get; }
843public BeforeActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter)
853public ActionDescriptor ActionDescriptor { get; }
894public AfterActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor, ActionExecutedContext actionExecutedContext, IFilterMetadata filter)
904public ActionDescriptor ActionDescriptor { get; }
1055public BeforeResultFilterOnResultExecutionEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter)
1065public ActionDescriptor ActionDescriptor { get; }
1106public AfterResultFilterOnResultExecutionEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter)
1116public ActionDescriptor ActionDescriptor { get; }
1157public BeforeResultFilterOnResultExecutingEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter)
1167public ActionDescriptor ActionDescriptor { get; }
1208public AfterResultFilterOnResultExecutingEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter)
1218public ActionDescriptor ActionDescriptor { get; }
1259public BeforeResultFilterOnResultExecutedEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter)
1269public ActionDescriptor ActionDescriptor { get; }
1310public AfterResultFilterOnResultExecutedEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter)
1320public ActionDescriptor ActionDescriptor { get; }
Microsoft.AspNetCore.Mvc.Core.Test (222)
Infrastructure\ActionSelectorTest.cs (61)
30var actions = new ActionDescriptor[]
69var actions = new ActionDescriptor[]
111var actions = new ActionDescriptor[]
149var actions = new ActionDescriptor[]
187var actions = new ActionDescriptor[]
223var actions = new ActionDescriptor[]
275var actions = new ActionDescriptor[]
324var actions = new ActionDescriptor[]
351var action = Assert.Single(candidates);
358var actions = new ActionDescriptor[]
385var action = Assert.Single(candidates);
392var actions = new ActionDescriptor[]
419var action = Assert.Single(candidates);
426var actions = new ActionDescriptor[]
453var action = Assert.Single(candidates);
460var actions = new ActionDescriptor[]
487var action = Assert.Single(candidates);
498var actions = new ActionDescriptor[]
523var actionWithConstraints = new ActionDescriptor()
532var actionWithoutConstraints = new ActionDescriptor()
537var actions = new ActionDescriptor[] { actionWithConstraints, actionWithoutConstraints };
543var action = selector.SelectBestCandidate(context, actions);
553var action1 = new ActionDescriptor()
561var action2 = new ActionDescriptor()
569var actions = new ActionDescriptor[] { action1, action2 };
575var action = selector.SelectBestCandidate(context, actions);
585var action1 = new ActionDescriptor()
594var action2 = new ActionDescriptor()
603var actions = new ActionDescriptor[] { action1, action2 };
609var action = selector.SelectBestCandidate(context, actions);
619var actionWithConstraints = new ActionDescriptor()
630var actionWithoutConstraints = new ActionDescriptor()
635var actions = new ActionDescriptor[] { actionWithConstraints, actionWithoutConstraints };
641var action = selector.SelectBestCandidate(context, actions);
651var nullConstraint = new ActionDescriptor()
661var actions = new ActionDescriptor[] { nullConstraint };
667var action = selector.SelectBestCandidate(context, actions);
678var actionWithConstraints = new ActionDescriptor()
686var actionWithoutConstraints = new ActionDescriptor()
691var actions = new ActionDescriptor[] { actionWithConstraints, actionWithoutConstraints, };
697var action = selector.SelectBestCandidate(context, actions);
708var best = new ActionDescriptor()
716var worst = new ActionDescriptor()
724var actions = new ActionDescriptor[] { best, worst };
730var action = selector.SelectBestCandidate(context, actions);
741var best = new ActionDescriptor()
751var worst = new ActionDescriptor()
761var actions = new ActionDescriptor[] { best, worst };
767var action = selector.SelectBestCandidate(context, actions);
777var nomatch1 = new ActionDescriptor()
787var nomatch2 = new ActionDescriptor()
797var best = new ActionDescriptor();
799var actions = new ActionDescriptor[] { best, nomatch1, nomatch2 };
805var action = selector.SelectBestCandidate(context, actions);
822var actions = new ActionDescriptor[]
1030private static ActionDescriptor[] GetActions()
1032return new ActionDescriptor[]
1048private static IEnumerable<ActionDescriptor> GetActions(
1049IEnumerable<ActionDescriptor> actions,
1063private static ActionSelector CreateSelector(IReadOnlyList<ActionDescriptor> actions, ILoggerFactory loggerFactory = null)
1119private static ActionDescriptor CreateAction(string area, string controller, string action)
Routing\ActionEndpointFactoryTest.cs (25)
41var action = CreateActionDescriptor(values);
58var action = CreateActionDescriptor(values);
79var action = CreateActionDescriptor(values);
94var action = CreateActionDescriptor(values);
109var action = CreateActionDescriptor(values);
124var action = CreateActionDescriptor(values);
139var action = CreateActionDescriptor(values);
161var action = CreateActionDescriptor(values);
179var action = CreateActionDescriptor(values, "{controller}/{action=TESTACTION}/{id?}");
195var action = CreateActionDescriptor(values);
210var action = CreateActionDescriptor(values, "Products/{action:int}");
226var action = CreateActionDescriptor(values, "{controller}/{action}/{page}");
243var action = CreateActionDescriptor(values, "{controller}/{action}/{page}");
263var action = CreateActionDescriptor(values, "{controller}/{action}/{page}");
295var action = CreateActionDescriptor(values);
313var action = CreateActionDescriptor(values);
331var action = CreateActionDescriptor(values);
367var action = CreateActionDescriptor(values);
376private RouteEndpoint CreateAttributeRoutedEndpoint(ActionDescriptor action)
392private RouteEndpoint CreateConventionalRoutedEndpoint(ActionDescriptor action, string template)
397private RouteEndpoint CreateConventionalRoutedEndpoint(ActionDescriptor action, ConventionalRouteEntry route)
420private IReadOnlyList<Endpoint> CreateConventionalRoutedEndpoints(ActionDescriptor action, ConventionalRouteEntry route)
425private IReadOnlyList<Endpoint> CreateConventionalRoutedEndpoints(ActionDescriptor action, IReadOnlyList<ConventionalRouteEntry> routes, bool createInertEndpoints = false)
456private ActionDescriptor CreateActionDescriptor(
461var actionDescriptor = new ActionDescriptor();
Routing\ControllerActionEndpointDataSourceTest.cs (34)
20var actions = new List<ActionDescriptor>
52var actions = new List<ActionDescriptor>
95Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
100Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
108Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
115Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
122Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
132var actions = new List<ActionDescriptor>
177Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
183Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
192Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
198Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
204Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
213var actions = new List<ActionDescriptor>
249if (b.Metadata.OfType<ActionDescriptor>().FirstOrDefault()?.AttributeRouteInfo != null)
264Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
269Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
277Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
284Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
291Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
301var actions = new List<ActionDescriptor>
346Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
352Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
361Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
367Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
373Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
382var actions = new List<ActionDescriptor>
440Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
447Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
457Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
465Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
472Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
483var actions = new List<ActionDescriptor>
560protected override ActionDescriptor CreateActionDescriptor(
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (7)
Microsoft.AspNetCore.Mvc.RazorPages (5)
Microsoft.AspNetCore.Mvc.RazorPages.Test (20)
Microsoft.AspNetCore.Mvc.Test (33)
Routing\ActionConstraintMatcherPolicyTest.cs (33)
22var actions = new ActionDescriptor[]
44var actionWithConstraints = new ActionDescriptor()
53var actionWithoutConstraints = new ActionDescriptor()
58var actions = new ActionDescriptor[] { actionWithConstraints, actionWithoutConstraints };
77var action1 = new ActionDescriptor()
85var action2 = new ActionDescriptor()
93var actions = new ActionDescriptor[] { action1, action2 };
112var action1 = new ActionDescriptor()
121var action2 = new ActionDescriptor()
130var actions = new ActionDescriptor[] { action1, action2 };
149var best = new ActionDescriptor()
157var worst = new ActionDescriptor()
165var actions = new ActionDescriptor[] { best, worst };
183var best = new ActionDescriptor()
191var another = new ActionDescriptor();
193var worst = new ActionDescriptor()
201var actions = new ActionDescriptor[] { best, another, worst };
222var action1 = new ActionDescriptor()
230var action2 = new ActionDescriptor()
238var actions = new ActionDescriptor[] { action1, null, action2 };
258var best = new ActionDescriptor()
268var worst = new ActionDescriptor()
278var actions = new ActionDescriptor[] { best, worst };
297var nomatch1 = new ActionDescriptor()
307var nomatch2 = new ActionDescriptor()
317var best = new ActionDescriptor();
319var actions = new ActionDescriptor[] { best, nomatch1, nomatch2 };
339var actions = new ActionDescriptor[]
375var actions = new ActionDescriptor[]
411var actions = new ActionDescriptor[]
436private ActionConstraintMatcherPolicy CreateSelector(ActionDescriptor[] actions)
471private static Endpoint CreateEndpoint(ActionDescriptor action)
485private static CandidateSet CreateCandidateSet(ActionDescriptor[] actions)
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (2)
Mvc.RoutingWebSite (1)