3 types derived from ActionDescriptor
Microsoft.AspNetCore.Mvc.Core (1)
Controllers\ControllerActionDescriptor.cs (1)
18public class ControllerActionDescriptor : ActionDescriptor
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\AttributeRoutingTest.cs (1)
185private class DisplayNameActionDescriptor : ActionDescriptor
Microsoft.AspNetCore.Mvc.RazorPages (1)
PageActionDescriptor.cs (1)
13public class PageActionDescriptor : ActionDescriptor
334 instantiations of ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
66apiDescription.ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
XmlComments\XmlCommentsDocumentFilterTests.cs (1)
50ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Filters\FilterContextTest.cs (1)
122: base(new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), filters)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
105ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
39var action = new ActionDescriptor();
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionConstraintMatcherPolicy.cs (1)
19internal static readonly ActionDescriptor NonAction = new ActionDescriptor();
Microsoft.AspNetCore.Mvc.Core.Test (215)
AcceptedAtActionResultTests.cs (3)
201var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 218var context = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 245new ActionDescriptor());
AcceptedAtRouteResultTests.cs (1)
153new ActionDescriptor());
AcceptedResultTests.cs (1)
110new ActionDescriptor());
ActionConstraints\HttpMethodActionConstraintTest.cs (1)
60var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint });
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1293context.Results.Add(new ActionDescriptor() 1301context.Results.Add(new ActionDescriptor()
Authorization\AuthorizeFilterTest.cs (2)
21private readonly ActionContext ActionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 629actionDescriptor: new ActionDescriptor());
ChallengeResultTest.cs (2)
34new ActionDescriptor()); 59new ActionDescriptor());
ConsumesAttributeTests.cs (17)
85var action = new ActionDescriptor() 109var action1 = new ActionDescriptor() 116var action2 = new ActionDescriptor() 147var action1 = new ActionDescriptor() 154var action2 = new ActionDescriptor() 184var actionWithConstraint = new ActionDescriptor() 191var actionWithConstraint2 = new ActionDescriptor() 197var actionWithoutConstraint = new ActionDescriptor(); 223var actionWithoutConstraint = new ActionDescriptor(); 225var actionWithConstraint = new ActionDescriptor() 232var actionWithConstraint2 = new ActionDescriptor() 263var actionWithConstraint = new ActionDescriptor() 270var actionWithConstraint2 = new ActionDescriptor() 276var actionWithoutConstraint = new ActionDescriptor(); 303var actionWithConstraint = new ActionDescriptor() 333var actionWithConstraint = new ActionDescriptor() 362var actionWithConstraint = new ActionDescriptor()
ContentResultTest.cs (1)
253new ActionDescriptor());
CreatedAtActionResultTests.cs (1)
73new ActionDescriptor());
CreatedAtRouteResultTests.cs (1)
86new ActionDescriptor());
CreatedResultTests.cs (1)
119new ActionDescriptor());
EmptyResultTests.cs (1)
21var actionDescriptor = new ActionDescriptor();
FileContentResultTest.cs (1)
37var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
FileResultHelperTest.cs (1)
480return new ActionContext(context, new RouteData(), new ActionDescriptor());
FileStreamResultTest.cs (1)
29var actionContext = new ActionContext(httpContext, new(), new());
Filters\DisableRequestSizeLimitFilterTest.cs (1)
122return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\FilterFactoryTest.cs (1)
328var actionDescriptor = new ActionDescriptor
Filters\FilterProviderTest.cs (1)
150return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\MiddlewareFilterBuilderTest.cs (3)
130new ActionDescriptor(), 193new ActionDescriptor(), 261new ActionDescriptor(),
Filters\MiddlewareFilterTest.cs (1)
220new ActionContext(httpContext, new RouteData(), new ActionDescriptor(), new ModelStateDictionary()),
Filters\RequestFormLimitsFilterTest.cs (1)
137return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\RequestSizeLimitFilterTest.cs (1)
128return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\ResponseCacheFilterExecutorTest.cs (1)
536new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
ForbidResultTest.cs (4)
34new ActionDescriptor()); 65new ActionDescriptor()); 99new ActionDescriptor()); 130new ActionDescriptor());
Formatters\FormatFilterTest.cs (4)
76var ac = new ActionContext(httpContext.Object, data, new ActionDescriptor()); 330var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 367var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 449return new ActionContext(httpContext.Object, data, new ActionDescriptor());
Formatters\JsonOutputFormatterTestBase.cs (1)
171return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpActionResultTests.cs (1)
36var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkObjectResultTest.cs (1)
57var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpOkResultTest.cs (1)
32var context = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
HttpStatusCodeResultTests.cs (1)
24var actionDescriptor = new ActionDescriptor();
Infrastructure\ActionSelectionTableTest.cs (25)
22new ActionDescriptor() 31new ActionDescriptor() 58new ActionDescriptor() 68new ActionDescriptor() 98new ActionDescriptor() 108new ActionDescriptor() 137new ActionDescriptor() 146new ActionDescriptor() 172new ActionDescriptor() 181new ActionDescriptor() 207new ActionDescriptor() 216new ActionDescriptor() 242new ActionDescriptor() 272new ActionDescriptor() 305new ActionDescriptor() 314new ActionDescriptor() 323new ActionDescriptor() // This won't match the request 354new ActionDescriptor() 363new ActionDescriptor() 372new ActionDescriptor() // This won't match the request 400new ActionDescriptor() 431new ActionDescriptor() 462new ActionDescriptor() 493new ActionDescriptor() 522new ActionDescriptor()
Infrastructure\ActionSelectorTest.cs (40)
32new ActionDescriptor() 41new ActionDescriptor() 71new ActionDescriptor() 81new ActionDescriptor() 113new ActionDescriptor() 122new ActionDescriptor() 151new ActionDescriptor() 160new ActionDescriptor() 189new ActionDescriptor() 225new ActionDescriptor() 234new ActionDescriptor() 243new ActionDescriptor() // This won't match the request 277new ActionDescriptor() 286new ActionDescriptor() 295new ActionDescriptor() // This won't match the request 326new ActionDescriptor() 360new ActionDescriptor() 394new ActionDescriptor() 428new ActionDescriptor() 462new ActionDescriptor() 500new ActionDescriptor() { DisplayName = "A1" }, 501new ActionDescriptor() { DisplayName = "A2" }, 523var actionWithConstraints = new ActionDescriptor() 532var actionWithoutConstraints = new ActionDescriptor() 553var action1 = new ActionDescriptor() 561var action2 = new ActionDescriptor() 585var action1 = new ActionDescriptor() 594var action2 = new ActionDescriptor() 619var actionWithConstraints = new ActionDescriptor() 630var actionWithoutConstraints = new ActionDescriptor() 651var nullConstraint = new ActionDescriptor() 678var actionWithConstraints = new ActionDescriptor() 686var actionWithoutConstraints = new ActionDescriptor() 708var best = new ActionDescriptor() 716var worst = new ActionDescriptor() 741var best = new ActionDescriptor() 751var worst = new ActionDescriptor() 777var nomatch1 = new ActionDescriptor() 787var nomatch2 = new ActionDescriptor() 797var best = new ActionDescriptor();
Infrastructure\ClientErrorResultFilterTest.cs (1)
116new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (7)
17var expected1 = new ActionDescriptor(); 20var expected2 = new ActionDescriptor(); 21var expected3 = new ActionDescriptor(); 45var actionDescriptorProvider = GetActionDescriptorProvider(new ActionDescriptor()); 72var expected1 = new ActionDescriptor(); 73var expected2 = new ActionDescriptor(); 74var expected3 = new ActionDescriptor();
Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Infrastructure\ModelStateInvalidFilterTest.cs (1)
75new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
LocalRedirectResultTest.cs (1)
133return new ActionContext(httpContext, routeData, new ActionDescriptor());
ModelBinding\CompositeValueProviderTest.cs (1)
52var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor(), new ModelStateDictionary());
ModelBinding\FormFileValueProviderFactoryTest.cs (2)
108var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 118var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\FormValueProviderFactoryTest.cs (2)
96var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 111var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
181var actionContext = new ActionContext(context.Object, new RouteData(), new ActionDescriptor()); 196var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (1)
119var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\QueryStringValueProviderFactoryTest.cs (2)
18var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 37var actionContext = new ActionContext(context, new RouteData(), new ActionDescriptor());
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
22ActionDescriptor = new ActionDescriptor() 55ActionDescriptor = new ActionDescriptor() 81ActionDescriptor = new ActionDescriptor() 105ActionDescriptor = new ActionDescriptor()
MvcCoreLoggerExtensionsTest.cs (2)
75var action = new ActionDescriptor 104var action = new ActionDescriptor
PhysicalFileResultTest.cs (1)
32var actionContext = new ActionContext(httpContext, new(), new());
ProducesAttributeTests.cs (1)
193return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
RedirectResultTest.cs (1)
19var actionContext = new ActionContext(httpContext, new(), new());
RedirectToActionResultTest.cs (4)
36var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 66var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 95var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 123var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RedirectToPageResultTest.cs (5)
28var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 60new ActionDescriptor()); 88ActionDescriptor = new ActionDescriptor(), 208new ActionDescriptor()); 259new ActionDescriptor());
RedirectToRouteResultTest.cs (5)
36new ActionDescriptor()); 66var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor()); 102var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 124var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 149var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RequireHttpsAttributeTests.cs (1)
229var actionContext = new ActionContext(ctx, new RouteData(), new ActionDescriptor());
ResponseCacheAttributeTest.cs (1)
348new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
Routing\ActionEndpointFactoryTest.cs (1)
461var actionDescriptor = new ActionDescriptor();
Routing\AttributeRouteTest.cs (25)
32new ActionDescriptor() 39new ActionDescriptor() 118new ActionDescriptor() 162new ActionDescriptor() 206new ActionDescriptor() 253new ActionDescriptor() 267new ActionDescriptor() 321new ActionDescriptor() 364new ActionDescriptor() 407new ActionDescriptor() 455new ActionDescriptor() 469new ActionDescriptor() 515new ActionDescriptor() 546new ActionDescriptor() 555new ActionDescriptor() 563new ActionDescriptor() 602new ActionDescriptor() 611new ActionDescriptor() 619new ActionDescriptor() 658new ActionDescriptor() 667new ActionDescriptor() 675new ActionDescriptor() 714new ActionDescriptor() 723new ActionDescriptor() 731new ActionDescriptor()
Routing\ControllerActionEndpointDataSourceTest.cs (1)
22new ActionDescriptor
Routing\KnownRouteValueConstraintTests.cs (1)
72var descriptorCollectionProvider = CreateActionDescriptorCollectionProvider(new ActionDescriptor());
Routing\UrlHelperBaseTest.cs (1)
133return new ActionContext(context, new RouteData(), new ActionDescriptor());
Routing\UrlHelperExtensionsTest.cs (6)
263ActionDescriptor = new ActionDescriptor 497ActionDescriptor = new ActionDescriptor 617var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 652var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 687var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 868ActionDescriptor = new ActionDescriptor
Routing\UrlHelperTestBase.cs (2)
1131var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 1138return new ActionContext(httpContext, routeData, new ActionDescriptor());
SignInResultTest.cs (3)
36new ActionDescriptor()); 63new ActionDescriptor()); 91new ActionDescriptor());
SignOutResultTest.cs (3)
34new ActionDescriptor()); 60new ActionDescriptor()); 91new ActionDescriptor());
VirtualFileResultTest.cs (1)
90var actionContext = new ActionContext(httpContext, new(), new());
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
226return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.Cors.Test (5)
CorsAuthorizationFilterTest.cs (1)
155actionDescriptor: new ActionDescriptor() { FilterDescriptors = filterDescriptors });
CorsHttpMethodActionConstraintTest.cs (1)
76var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint });
DisableCorsAuthorizationFilterTest.cs (3)
24new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 43new ActionContext(httpContext, new RouteData(), new ActionDescriptor()), 65new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
JsonResultTest.cs (1)
60return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
171return new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
493return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.Razor.Test (14)
DefaultTagHelperFactoryTest.cs (1)
155var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
41var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageActivatorTest.cs (1)
259var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateModelExpressionTest.cs (1)
322var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
RazorPageCreateTagHelperTest.cs (1)
93var actionContext = new ActionContext(httpContext.Object, new RouteData(), new ActionDescriptor());
RazorPageTest.cs (1)
1422new ActionDescriptor());
RazorViewEngineTest.cs (7)
1611var actionDescriptor = new ActionDescriptor(); 1635var actionDescriptor = new ActionDescriptor(); 1658var actionDescriptor = new ActionDescriptor(); 1681var actionDescriptor = new ActionDescriptor(); 1706var actionDescriptor = new ActionDescriptor 2127var actionDescriptor = new ActionDescriptor(); 2142var actionDescriptor = new ActionDescriptor();
RazorViewTest.cs (1)
1793var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Filters\PageViewDataAttributeFilterTest.cs (2)
24var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 43var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
23new ActionDescriptor
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
CacheTagHelperTest.cs (1)
931var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
CacheTagKeyTest.cs (1)
540var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
DistributedCacheTagHelperTest.cs (1)
738var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
FormTagHelperTest.cs (1)
1159new ActionDescriptor());
ImageTagHelperTest.cs (1)
293var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
LinkTagHelperTest.cs (1)
1124var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
PartialTagHelperTest.cs (1)
841new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()),
ScriptTagHelperTest.cs (1)
1105var actionContext = new ActionContext(new DefaultHttpContext(), new AspNetCore.Routing.RouteData(), new ActionDescriptor());
TestableHtmlGenerator.cs (1)
77new ActionDescriptor(),
ValidationMessageTagHelperTest.cs (1)
468new ActionDescriptor());
ValidationSummaryTagHelperTest.cs (1)
652new ActionDescriptor());
Microsoft.AspNetCore.Mvc.Test (26)
Routing\ActionConstraintMatcherPolicyTest.cs (26)
24new ActionDescriptor() { DisplayName = "A1" }, 25new ActionDescriptor() { DisplayName = "A2" }, 44var actionWithConstraints = new ActionDescriptor() 53var actionWithoutConstraints = new ActionDescriptor() 77var action1 = new ActionDescriptor() 85var action2 = new ActionDescriptor() 112var action1 = new ActionDescriptor() 121var action2 = new ActionDescriptor() 149var best = new ActionDescriptor() 157var worst = new ActionDescriptor() 183var best = new ActionDescriptor() 191var another = new ActionDescriptor(); 193var worst = new ActionDescriptor() 222var action1 = new ActionDescriptor() 230var action2 = new ActionDescriptor() 258var best = new ActionDescriptor() 268var worst = new ActionDescriptor() 297var nomatch1 = new ActionDescriptor() 307var nomatch2 = new ActionDescriptor() 317var best = new ActionDescriptor(); 341new ActionDescriptor() 377new ActionDescriptor() 381new ActionDescriptor() 388new ActionDescriptor() 413new ActionDescriptor() 417new ActionDescriptor()
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (50)
DefaultHtmlGeneratorTest.cs (1)
1033var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
DefaultValidationHtmlAttributeProviderTest.cs (1)
253var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\AntiforgeryMiddlewareAuthorizationFilterTest.cs (4)
22var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 40var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 57var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 74var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Filters\AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs (3)
31var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 59var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 83var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
43ActionDescriptor = new ActionDescriptor(), 89ActionDescriptor = new ActionDescriptor(), 132ActionDescriptor = new ActionDescriptor(), 171ActionDescriptor = new ActionDescriptor(),
Filters\ControllerViewDataAttributeFilterTest.cs (2)
21var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 39var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
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());
Filters\ValidateAntiforgeryTokenAuthorizationFilterTest.cs (3)
35var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 59var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()); 87var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
PageRemoteAttributeTest.cs (1)
215return new ActionContext(httpContext, routeData, new ActionDescriptor());
PartialViewResultTest.cs (2)
45var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 228return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
RemoteAttributeBaseTest.cs (1)
485actionDescriptor: new ActionDescriptor());
RemoteAttributeTest.cs (1)
481return new ActionContext(httpContext, routeData, new ActionDescriptor());
Rendering\DefaultTemplatesUtilities.cs (1)
229var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
Rendering\ViewContextTests.cs (2)
23new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), 50new ActionContext(httpContext, new RouteData(), new ActionDescriptor()),
SkipStatusCodePagesAttributeTest.cs (1)
52return new ActionContext(new DefaultHttpContext(), 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());
ViewComponents\ContentViewComponentResultTest.cs (1)
40var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
40var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
ViewComponents\ViewComponentContextTest.cs (2)
22var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); 85var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewComponents\ViewViewComponentResultTest.cs (1)
521var actionContext = new ActionContext(httpContext, new RouteData(), new ActionDescriptor());
ViewEngines\CompositeViewEngineTest.cs (1)
428return new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
ViewExecutorTest.cs (7)
99new ActionDescriptor()); 140new ActionDescriptor()); 194new ActionDescriptor()); 231new ActionDescriptor()); 266new ActionDescriptor()); 314new ActionDescriptor()); 355new ActionDescriptor());
ViewResultTest.cs (2)
55var actionContext = new ActionContext(new DefaultHttpContext() { RequestServices = Mock.Of<IServiceProvider>(), }, new RouteData(), new ActionDescriptor()); 240return new ActionContext(GetHttpContext(), new RouteData(), new ActionDescriptor());
505 references to ActionDescriptor
Microsoft.AspNetCore.Grpc.Swagger (3)
GrpcSwaggerServiceExtensions.cs (1)
61public ActionDescriptorCollection ActionDescriptors { get; } = new ActionDescriptorCollection(new List<ActionDescriptor>(), 1);
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (2)
33.Select(group => new KeyValuePair<string, ActionDescriptor>(group.Key, group.First())); 53private bool TryAdd(OpenApiDocument swaggerDoc, KeyValuePair<string, ActionDescriptor> nameAndType, Type type)
Microsoft.AspNetCore.Mvc.Abstractions (30)
Abstractions\ActionDescriptor.cs (2)
16/// Initializes a new instance of <see cref="ActionDescriptor"/>. 73/// Stores arbitrary metadata properties associated with the <see cref="ActionDescriptor"/>.
Abstractions\ActionDescriptorExtensions.cs (5)
7/// Extension methods for <see cref="ActionDescriptor"/>. 12/// Gets the value of a property from the <see cref="ActionDescriptor.Properties"/> collection 18public static T? GetProperty<T>(this ActionDescriptor actionDescriptor) 33/// Sets the value of an property in the <see cref="ActionDescriptor.Properties"/> collection using 39public static void SetProperty<T>(this ActionDescriptor actionDescriptor, T value)
Abstractions\ActionDescriptorProviderContext.cs (3)
12/// Gets the <see cref="IList{T}" /> of <see cref="ActionDescriptor"/> instances of <see cref="IActionDescriptorProvider"/> 15public IList<ActionDescriptor> Results { get; } = new List<ActionDescriptor>();
Abstractions\IActionDescriptorProvider.cs (2)
7/// Defines a contract for specifying <see cref="ActionDescriptor"/> instances. 12/// perform <see cref="ActionDescriptor" /> discovery.
ActionConstraints\ActionConstraintProviderContext.cs (4)
18/// <param name="action">The <see cref="ActionDescriptor"/> for which constraints are being created.</param> 22ActionDescriptor action, 40/// The <see cref="ActionDescriptor"/> for which constraints are being created. 42public ActionDescriptor Action { get; }
ActionConstraints\ActionSelectorCandidate.cs (4)
16/// <param name="action">The <see cref="ActionDescriptor"/> representing a candidate for selection.</param> 20public ActionSelectorCandidate(ActionDescriptor action, IReadOnlyList<IActionConstraint>? constraints) 29/// The <see cref="ActionDescriptor"/> representing a candidate for selection. 31public ActionDescriptor Action { get; }
ActionContext.cs (6)
45/// <param name="actionDescriptor">The <see cref="Abstractions.ActionDescriptor"/> for the selected action.</param> 49ActionDescriptor actionDescriptor) 59/// <param name="actionDescriptor">The <see cref="Abstractions.ActionDescriptor"/> for the selected action.</param> 64ActionDescriptor actionDescriptor, 79/// Gets or sets the <see cref="Abstractions.ActionDescriptor"/> for the selected action. 84public ActionDescriptor ActionDescriptor { get; set; } = default!;
ApiExplorer\ApiDescription.cs (1)
18public ActionDescriptor ActionDescriptor { get; set; } = default!;
ApiExplorer\ApiDescriptionProviderContext.cs (2)
17public ApiDescriptionProviderContext(IReadOnlyList<ActionDescriptor> actions) 29public IReadOnlyList<ActionDescriptor> Actions { get; }
ApiExplorer\IApiDescriptionProvider.cs (1)
13/// On the first query for <see cref="ActionDescriptor"/>, MVC invokes all registered instances of <see cref="IApiDescriptionProvider"/>
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
464ActionDescriptor actionDescriptor,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (24)
DefaultApiDescriptionProviderTest.cs (3)
39var action = new ActionDescriptor(); 2220ActionDescriptor action, 2225var context = new ApiDescriptionProviderContext(new ActionDescriptor[] { action });
EndpointMetadataApiDescriptionProviderTest.cs (21)
836var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 861var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 886var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 912var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 962var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 999var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1033var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1062var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1092var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1124var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1156var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1188var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1217var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1246var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1334var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1363var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1403var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1432var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1463var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1497var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1531var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>());
Microsoft.AspNetCore.Mvc.Core (138)
ActionConstraints\ActionConstraintCache.cs (5)
45public IReadOnlyList<IActionConstraint>? GetActionConstraints(HttpContext httpContext, ActionDescriptor action) 93private IReadOnlyList<IActionConstraint>? GetActionConstraintsFromEntry(CacheEntry entry, HttpContext httpContext, ActionDescriptor action) 121private void ExecuteProviders(HttpContext httpContext, ActionDescriptor action, List<ActionConstraintItem> items) 175public ConcurrentDictionary<ActionDescriptor, CacheEntry> Entries { get; } = 176new ConcurrentDictionary<ActionDescriptor, CacheEntry>();
ActionConstraints\ActionMethodSelectorAttribute.cs (1)
34public abstract bool IsValidForRequest(RouteContext routeContext, ActionDescriptor action);
ApiExplorer\ApiDescriptionActionData.cs (1)
8/// <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ActionModel.cs (2)
133/// will be implicitly added to <see cref="ActionDescriptor.RouteValues"/> when the action 145/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ApplicationModel.cs (1)
51/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
54private static void AddControllerPropertyDescriptors(ActionDescriptor actionDescriptor, ControllerModel controller) 62private static void AddParameterDescriptors(ActionDescriptor actionDescriptor, ActionModel action) 252private static bool IsAttributeRouted(ActionDescriptor actionDescriptor)
ApplicationModels\ControllerActionDescriptorProvider.cs (2)
55var action = context.Results[i]; 64var action = context.Results[i];
ApplicationModels\ControllerModel.cs (1)
134/// These properties will be copied to <see cref="Abstractions.ActionDescriptor.Properties"/>.
ConsumesAttribute.cs (1)
225private bool IsApplicable(ActionDescriptor actionDescriptor)
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; }
Filters\FilterFactory.cs (1)
17var actionDescriptor = actionContext.ActionDescriptor;
Infrastructure\ActionDescriptorCollection.cs (3)
11/// A cached collection of <see cref="ActionDescriptor" />. 20public ActionDescriptorCollection(IReadOnlyList<ActionDescriptor> items, int version) 31public IReadOnlyList<ActionDescriptor> Items { get; }
Infrastructure\ActionDescriptorCollectionProvider.cs (1)
13/// for reactive notifications of <see cref="ActionDescriptor"/> changes.
Infrastructure\ActionSelectionTable.cs (4)
59public static ActionSelectionTable<ActionDescriptor> Create(ActionDescriptorCollection actions) 61return CreateCore<ActionDescriptor>( 91getRouteKeys: e => e.Metadata.GetMetadata<ActionDescriptor>()?.RouteValues?.Keys, 95e.Metadata.GetMetadata<ActionDescriptor>()?.RouteValues?.TryGetValue(key, out value);
Infrastructure\ActionSelector.cs (12)
24private ActionSelectionTable<ActionDescriptor>? _cache; 45private ActionSelectionTable<ActionDescriptor> Current 57cache = ActionSelectionTable<ActionDescriptor>.Create(actions); 63public IReadOnlyList<ActionDescriptor> SelectCandidates(RouteContext context) 79public ActionDescriptor? SelectBestCandidate(RouteContext context, IReadOnlyList<ActionDescriptor> candidates) 92var selectedAction = finalMatches[0]; 111private IReadOnlyList<ActionDescriptor>? EvaluateActionConstraints( 113IReadOnlyList<ActionDescriptor> actions) 121var action = actions[i]; 128List<ActionDescriptor>? results = null; 132results = new List<ActionDescriptor>(matchesCount);
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (2)
50/// Returns a cached collection of <see cref="ActionDescriptor" />. 160new ReadOnlyCollection<ActionDescriptor>(context.Results),
Infrastructure\IActionDescriptorChangeProvider.cs (4)
12/// Provides a way to signal invalidation of the cached collection of <see cref="Abstractions.ActionDescriptor" /> from an 17/// Use <see cref="ActionDescriptorCollectionProvider.GetChangeToken"/> to be notified of <see cref="ActionDescriptor"/> 23/// Gets a <see cref="IChangeToken"/> used to signal invalidation of cached <see cref="Abstractions.ActionDescriptor"/> 29/// Use <see cref="ActionDescriptorCollectionProvider.GetChangeToken"/> to be notified of <see cref="ActionDescriptor"/>
Infrastructure\IActionDescriptorCollectionProvider.cs (1)
11/// Provides the currently cached collection of <see cref="Abstractions.ActionDescriptor"/>.
Infrastructure\IActionSelector.cs (8)
17/// Selects a set of <see cref="ActionDescriptor"/> candidates for the current request associated with 21/// <returns>A set of <see cref="ActionDescriptor"/> candidates or <c>null</c>.</returns> 31IReadOnlyList<ActionDescriptor>? SelectCandidates(RouteContext context); 34/// Selects the best <see cref="ActionDescriptor"/> candidate from <paramref name="candidates"/> for the 38/// <param name="candidates">The set of <see cref="ActionDescriptor"/> candidates.</param> 39/// <returns>The best <see cref="ActionDescriptor"/> candidate for the current request or <c>null</c>.</returns> 55ActionDescriptor? SelectBestCandidate(RouteContext context, IReadOnlyList<ActionDescriptor> candidates);
Infrastructure\ResourceInvoker.Log.cs (2)
20public static void ExecutingAction(ILogger logger, ActionDescriptor action) 98public static void ExecutedAction(ILogger logger, ActionDescriptor action, TimeSpan timeSpan)
MvcCoreDiagnosticListenerExtensions.cs (4)
22ActionDescriptor actionDescriptor, 38private static void BeforeActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData) 50ActionDescriptor actionDescriptor, 66private static void AfterActionImpl(DiagnosticListener diagnosticListener, ActionDescriptor actionDescriptor, HttpContext httpContext, RouteData routeData)
MvcCoreLoggerExtensions.cs (3)
20public static IDisposable? ActionScope(this ILogger logger, ActionDescriptor action) 282private readonly ActionDescriptor _action; 284public ActionLogScope(ActionDescriptor action)
Routing\ActionConstraintMatcherPolicy.cs (5)
19internal static readonly ActionDescriptor NonAction = new ActionDescriptor(); 41var action = endpoint.Metadata.GetMetadata<ActionDescriptor>(); 137var actionDescriptor = endpoint.Metadata.GetMetadata<ActionDescriptor>();
Routing\ActionEndpointDataSourceBase.cs (1)
66IReadOnlyList<ActionDescriptor> actions,
Routing\ActionEndpointFactory.cs (6)
41ActionDescriptor action, 276private static (RoutePattern resolvedRoutePattern, IDictionary<string, string?> resolvedRequiredValues) ResolveDefaultsAndRequiredValues(ActionDescriptor action, RoutePattern attributeRoutePattern) 331ActionDescriptor action, 500private RequestDelegate? CreateRequestDelegate(ActionDescriptor action, RouteValueDictionary? dataTokens = null) 534var action = endpoint.Metadata.GetMetadata<ActionDescriptor>()!;
Routing\AttributeRoute.cs (7)
19private readonly Func<ActionDescriptor[], IRouter> _handlerFactory; 26Func<ActionDescriptor[], IRouter> handlerFactory) 128private static IEnumerable<IGrouping<RouteInfo, ActionDescriptor>> GetInboundRouteGroups(List<RouteInfo> routeInfos) 135private static List<RouteInfo> GetRouteInfos(IReadOnlyList<ActionDescriptor> actions) 148foreach (var action in attributeRoutedActions) 180ActionDescriptor action) 231public ActionDescriptor ActionDescriptor { get; init; } = default!;
Routing\ControllerActionEndpointDataSource.cs (1)
67IReadOnlyList<ActionDescriptor> actions,
Routing\ControllerRequestDelegateFactory.cs (1)
60public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Routing\IRequestDelegateFactory.cs (1)
15RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens);
Routing\KnownRouteValueConstraint.cs (1)
101var action = actionDescriptors.Items[i];
Routing\MvcAttributeRouteHandler.cs (2)
32public ActionDescriptor[]? Actions { get; set; } 54var actionDescriptor = _actionSelector.SelectBestCandidate(context, Actions);
Routing\MvcRouteHandler.cs (1)
50var actionDescriptor = _actionSelector.SelectBestCandidate(context, candidates);
Routing\NormalizedRouteValue.cs (2)
19/// <see cref="Abstractions.ActionDescriptor.RouteValues"/> to get route values 32var actionDescriptor = context.ActionDescriptor;
Microsoft.AspNetCore.Mvc.Core.Test (222)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (8)
240var action = Assert.Single(descriptors); 261var anonymousAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AllowAnonymousAction"); 269var authorizeAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AuthorizeAction"); 286var action = Assert.Single(descriptors); 343var action = Assert.Single(descriptors); 360var descriptorWithoutValue = Assert.Single( 364var descriptorWithValue = Assert.Single( 1389private IEnumerable<ActionDescriptor> GetDescriptors(params TypeInfo[] controllerTypeInfos)
ApplicationModels\EndpointMetadataProviderTest.cs (2)
255foreach (var descriptor in actionDescriptorProviderContext.Results) 291public MockActionDescriptorCollectionProvider(IReadOnlyList<ActionDescriptor> actions)
ConsumesAttributeTests.cs (17)
85var action = new ActionDescriptor() 109var action1 = new ActionDescriptor() 116var action2 = new ActionDescriptor() 147var action1 = new ActionDescriptor() 154var action2 = new ActionDescriptor() 184var actionWithConstraint = new ActionDescriptor() 191var actionWithConstraint2 = new ActionDescriptor() 197var actionWithoutConstraint = new ActionDescriptor(); 223var actionWithoutConstraint = new ActionDescriptor(); 225var actionWithConstraint = new ActionDescriptor() 232var actionWithConstraint2 = new ActionDescriptor() 263var actionWithConstraint = new ActionDescriptor() 270var actionWithConstraint2 = new ActionDescriptor() 276var actionWithoutConstraint = new ActionDescriptor(); 303var actionWithConstraint = new ActionDescriptor() 333var actionWithConstraint = new ActionDescriptor() 362var actionWithConstraint = new ActionDescriptor()
EmptyResultTests.cs (1)
21var actionDescriptor = new ActionDescriptor();
Filters\FilterFactoryTest.cs (1)
328var actionDescriptor = new ActionDescriptor
HttpStatusCodeResultTests.cs (1)
24var actionDescriptor = new ActionDescriptor();
Infrastructure\ActionSelectionTableTest.cs (22)
20var actions = new ActionDescriptor[] 56var actions = new ActionDescriptor[] 96var actions = new ActionDescriptor[] 129Assert.Collection(matches, (e) => Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>())); 135var actions = new ActionDescriptor[] 170var actions = new ActionDescriptor[] 199Assert.Equal(actions.ToArray(), matches.Select(e => e.Metadata.GetMetadata<ActionDescriptor>()).ToArray()); 205var actions = new ActionDescriptor[] 240var actions = new ActionDescriptor[] 270var actions = new ActionDescriptor[] 303var actions = new ActionDescriptor[] 352var actions = new ActionDescriptor[] 398var actions = new ActionDescriptor[] 429var actions = new ActionDescriptor[] 460var actions = new ActionDescriptor[] 491var actions = new ActionDescriptor[] 520var actions = new ActionDescriptor[] 546private static ActionSelectionTable<ActionDescriptor> CreateTableWithActionDescriptors(IReadOnlyList<ActionDescriptor> actions) 548return ActionSelectionTable<ActionDescriptor>.Create(new ActionDescriptorCollection(actions, 0)); 551private static ActionSelectionTable<Endpoint> CreateTableWithEndpoints(IReadOnlyList<ActionDescriptor> actions) 563return ActionSelectionTable<ActionDescriptor>.Create(endpoints);
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)
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (8)
17var expected1 = new ActionDescriptor(); 20var expected2 = new ActionDescriptor(); 21var expected3 = new ActionDescriptor(); 72var expected1 = new ActionDescriptor(); 73var expected2 = new ActionDescriptor(); 74var expected3 = new ActionDescriptor(); 158private static IActionDescriptorProvider GetActionDescriptorProvider(params ActionDescriptor[] values) 165foreach (var value in values)
MvcCoreLoggerExtensionsTest.cs (2)
75var action = new ActionDescriptor 104var action = new ActionDescriptor
Routing\ActionEndpointDataSourceBaseTest.cs (2)
24actions.Setup(m => m.ActionDescriptors).Returns(new ActionDescriptorCollection(new List<ActionDescriptor> 164protected abstract ActionDescriptor CreateActionDescriptor(
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\AttributeRouteTest.cs (18)
28ActionDescriptor selected = null; 30var actions = new List<ActionDescriptor>() 48Func<ActionDescriptor[], IRouter> handlerFactory = (_) => 116var actions = new List<ActionDescriptor>() 160var actions = new List<ActionDescriptor>() 204var actions = new List<ActionDescriptor>() 251var actions = new List<ActionDescriptor>() 319var actions = new List<ActionDescriptor>() 362var actions = new List<ActionDescriptor>() 405var actions = new List<ActionDescriptor>() 453var actions = new List<ActionDescriptor>() 513var actions = new List<ActionDescriptor>() 544var actions = new List<ActionDescriptor>() 600var actions = new List<ActionDescriptor>() 656var actions = new List<ActionDescriptor>() 712var actions = new List<ActionDescriptor>() 787IReadOnlyList<ActionDescriptor> actions) 805Func<ActionDescriptor[], IRouter> handlerFactory,
Routing\AttributeRoutingTest.cs (6)
26var action = CreateAction("InvalidTemplate", "{" + value + "}"); 52var action = CreateAction("DisallowedParameter", "{foo}/{action}"); 79var action1 = CreateAction("DisallowedParameter1", "{foo}/{action}"); 82var action2 = CreateAction("DisallowedParameter2", "cool/{action}"); 147private static ActionDescriptor CreateAction(string displayName, string template) 157private static IServiceProvider CreateServices(params ActionDescriptor[] actions)
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(
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
18var actions = new ActionDescriptor[]
Routing\KnownRouteValueConstraintTests.cs (8)
23var actionDescriptor = CreateActionDescriptor("testArea", 94var actionDescriptor = CreateActionDescriptor("testArea", 130var actionDescriptor = CreateActionDescriptor( 161var actionDescriptor = CreateActionDescriptor("testArea", 216var actionDescriptor = CreateActionDescriptor("testArea", 247var actionDescriptor = CreateActionDescriptor("testArea", "testController", "testAction"); 271private static IActionDescriptorCollectionProvider CreateActionDescriptorCollectionProvider(ActionDescriptor actionDescriptor) 294private static ActionDescriptor CreateActionDescriptor(string area, string controller, string action)
Routing\MvcRouteHandlerTests.cs (5)
28.Returns(new ActionDescriptor[0]); 50ActionDescriptor actionDescriptor = null, 58var mockAction = new Mock<ActionDescriptor>(); 67.Returns(new ActionDescriptor[] { actionDescriptor }); 70.Setup(a => a.SelectBestCandidate(It.IsAny<RouteContext>(), It.IsAny<IReadOnlyList<ActionDescriptor>>()))
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
JsonPatchOperationsArrayProviderTests.cs (1)
34var actionDescriptorList = new List<ActionDescriptor>();
Microsoft.AspNetCore.Mvc.Razor (5)
Diagnostics\MvcDiagnostics.cs (4)
30public BeforeViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 51public ActionDescriptor ActionDescriptor { get; } 91public AfterViewPageEventData(IRazorPage page, ViewContext viewContext, ActionDescriptor actionDescriptor, HttpContext httpContext) 112public ActionDescriptor ActionDescriptor { get; }
RazorViewEngine.cs (1)
100/// <see cref="Abstractions.ActionDescriptor.RouteValues"/> to get route values
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
PageLoaderMatcherPolicyTest.cs (2)
87private static Endpoint CreateEndpoint(ActionDescriptor action) 96private static CandidateSet CreateCandidateSet(params ActionDescriptor[] actions)
Microsoft.AspNetCore.Mvc.Razor.Test (7)
RazorViewEngineTest.cs (7)
1611var actionDescriptor = new ActionDescriptor(); 1635var actionDescriptor = new ActionDescriptor(); 1658var actionDescriptor = new ActionDescriptor(); 1681var actionDescriptor = new ActionDescriptor(); 1706var actionDescriptor = new ActionDescriptor 2127var actionDescriptor = new ActionDescriptor(); 2142var actionDescriptor = new ActionDescriptor();
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\PageRouteModel.cs (1)
107/// These entries will be implicitly added to <see cref="ActionDescriptor.RouteValues"/>
Infrastructure\CompiledPageActionDescriptorProvider.cs (1)
66foreach (var item in newContext.Results)
Infrastructure\PageActionDescriptorProvider.cs (1)
81private void AddActionDescriptors(IList<ActionDescriptor> actions, PageRouteModel model)
Infrastructure\PageActionEndpointDataSource.cs (1)
46IReadOnlyList<ActionDescriptor> actions,
Infrastructure\PageRequestDelegateFactory.cs (1)
71public RequestDelegate? CreateRequestDelegate(ActionDescriptor actionDescriptor, RouteValueDictionary? dataTokens)
Microsoft.AspNetCore.Mvc.RazorPages.Test (20)
Infrastructure\DefaultPageLoaderTest.cs (1)
25var actionDescriptors = new ActionDescriptorCollection(Array.Empty<ActionDescriptor>(), 1);
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
18var actions = new ActionDescriptor[]
Infrastructure\PageActionDescriptorProviderTest.cs (5)
60var result = Assert.Single(context.Results); 99var result = Assert.Single(context.Results); 149var result = Assert.Single(context.Results); 195var result = Assert.Single(context.Results); 229var result = Assert.Single(context.Results);
Infrastructure\PageActionEndpointDataSourceTest.cs (11)
21var actions = new List<ActionDescriptor> 53var actions = new List<ActionDescriptor> 88Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 97var actions = new List<ActionDescriptor> 158Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 165Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>()); 175var actions = new List<ActionDescriptor> 208Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 217var actions = new List<ActionDescriptor> 256Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>()); 268protected override ActionDescriptor CreateActionDescriptor(
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (2)
24actions.Setup(m => m.ActionDescriptors).Returns(new ActionDescriptorCollection(new List<ActionDescriptor> 164protected abstract ActionDescriptor CreateActionDescriptor(
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)
Diagnostics\MvcDiagnostics.cs (8)
27public BeforeViewComponentEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, object viewComponent) 37public ActionDescriptor ActionDescriptor { get; } 79public AfterViewComponentEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IViewComponentResult viewComponentResult, object viewComponent) 90public ActionDescriptor ActionDescriptor { get; } 137public ViewComponentBeforeViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) 146public ActionDescriptor ActionDescriptor { get; } 187public ViewComponentAfterViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) 197public ActionDescriptor ActionDescriptor { get; }
PartialViewResultExecutor.cs (1)
173var actionDescriptor = context.ActionDescriptor;
ViewResultExecutor.cs (1)
173var actionDescriptor = context.ActionDescriptor;
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
309var actionDescriptor = description.ActionDescriptor;
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
42public static async Task VerifyOpenApiDocument(ActionDescriptor action, Action<OpenApiDocument> verifyOpenApiDocument) 51internal static OpenApiDocumentService CreateDocumentService(IEndpointRouteBuilder builder, ActionDescriptor actionDescriptor)
Mvc.RoutingWebSite (1)
RemoveControllerActionDescriptorProvider.cs (1)
26foreach (var item in context.Results.ToList())