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