5 writes to ActionName
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
34ActionName = action.ActionName,
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ActionSelectorTest.cs (1)
1123ActionName = string.Format(CultureInfo.InvariantCulture, "Area: {0}, Controller: {1}, Action: {2}", area, controller, action),
Routing\KnownRouteValueConstraintTests.cs (1)
298ActionName = string.Format(CultureInfo.InvariantCulture, "Area: {0}, Controller: {1}, Action: {2}", area, controller, action),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
PartialViewResultExecutorTest.cs (1)
338return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
ViewResultExecutorTest.cs (1)
328return new ActionContext(new DefaultHttpContext(), routeData, new ControllerActionDescriptor() { ActionName = actionName });
47 references to ActionName
ApplicationModelWebSite (1)
Controllers\ActionModelController.cs (1)
16return ControllerContext.ActionDescriptor.ActionName;
BasicWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName,
FormatterWebSite (1)
ValidateBodyParameterAttribute.cs (1)
30ActionName = ((ControllerActionDescriptor)context.ActionDescriptor).ActionName,
GenericHostWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName,
Microsoft.AspNetCore.Mvc.Core (2)
MvcOptions.cs (1)
271/// <see cref="ControllerActionDescriptor.ActionName"/> is used to construct the route to the action as
Routing\IRouteValueProvider.cs (1)
25/// <see cref="ControllerActionDescriptor.ActionName"/>
Microsoft.AspNetCore.Mvc.Core.Test (35)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (31)
30var actionNames = descriptors.Select(ad => ad.ActionName); 45var descriptor = descriptors.Single(ad => ad.ActionName == nameof(PersonController.GetPerson)); 92Assert.Equal("OnlyPost", descriptor.ActionName); 124d => d.ActionName.Equals(nameof(ActionParametersController.RequiredInt))); 143d => d.ActionName.Equals(nameof(ActionParametersController.MultipleParameters))); 168d => d.ActionName.Equals(nameof(ActionParametersController.DifferentCasing))); 201d => d.ActionName.Equals(actionName)); 222d => d.ActionName.Equals(actionName)); 312.Where(d => d.ActionName == nameof(NonDuplicatedAttributeRouteController.DifferentHttpMethods)); 453var actions = descriptors.Where(d => d.ActionName == "MultipleHttpGet"); 458Assert.Equal("MultipleHttpGet", action.ActionName); 478var actions = descriptors.Where(d => d.ActionName == nameof(MultiRouteAttributesController.AcceptVerbs)); 506var action = Assert.Single(descriptors, d => d.ActionName == "AcceptVerbsOverride"); 530var actions = descriptors.Where(d => d.ActionName == "AcceptVerbsRouteAttributeAndHttpPut"); 569var actions = descriptors.Where(d => d.ActionName == "AcceptVerbsRouteAttributeWithTemplateAndHttpPut"); 616var controllerAndAction = Assert.Single(actions, a => a.ActionName.Equals(firstActionName)); 619var controllerActionAndOverride = Assert.Single(actions, a => a.ActionName.Equals(secondActionName)); 639var actions = descriptors.Where(d => d.ActionName.Equals(actionName)); 743Assert.Equal("Action", action.ActionName); 811var getActions = actions.Where(a => a.ActionName.Equals(getActionName)); 821var editAction = Assert.Single(actions, a => a.ActionName.Equals(editActionName)); 839var getActions = actions.Where(a => a.ActionName.Equals(getActionName)); 853var editAction = Assert.Single(actions, a => a.ActionName.Equals(editActionName)); 901var indexAction = Assert.Single(actionDescriptors, ad => ad.ActionName.Equals("Index")); 970var action = Assert.Single(actions, a => a.ActionName == "Edit"); 973action = Assert.Single(actions, a => a.ActionName == "Create"); 1050var action = Assert.Single(actions, a => a.ActionName == "Edit"); 1053action = Assert.Single(actions, a => a.ActionName == "Create"); 1211var actions = provider.GetDescriptors().Where(a => a.ActionName == actionName); 1238var actions = provider.GetDescriptors().Where(a => a.ActionName == actionName); 1277var actions = provider.GetDescriptors().Where(a => a.ActionName == actionName);
Infrastructure\ActionSelectorTest.cs (4)
864Assert.Equal("Patch", result.ActionName); 885Assert.Equal("Put", result.ActionName); 917.FirstOrDefault(x => x.ControllerName == "NonAction" && x.ActionName == actionName); 970Assert.Equal(actionName, result.ActionName);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
PartialViewResult.cs (1)
28/// When <c>null</c>, defaults to <see cref="ControllerActionDescriptor.ActionName"/>.
ViewResult.cs (1)
28/// When <c>null</c>, defaults to <see cref="ControllerActionDescriptor.ActionName"/>.
Mvc.RoutingWebSite (3)
Controllers\RouteDataController.cs (1)
32context.RouteData.DataTokens.Add("actionName", ((ControllerActionDescriptor)context.ActionDescriptor).ActionName);
RemoveControllerActionDescriptorProvider.cs (1)
33if (controllerToRemove.Actions == null || controllerToRemove.Actions.Contains(controllerActionDescriptor.ActionName))
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName,
VersioningWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName,