2 writes to ActionMethod
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ActionModel.cs (2)
32
ActionMethod
= actionMethod;
51
ActionMethod
= other.ActionMethod;
17 references to ActionMethod
Microsoft.AspNetCore.Mvc.Core (9)
ApplicationModels\ActionModel.cs (4)
51
ActionMethod = other.
ActionMethod
;
153
MemberInfo ICommonModel.MemberInfo =>
ActionMethod
;
171
return
ActionMethod
.Name;
176
return $"{controllerType}.{
ActionMethod
.Name} ({controllerAssembly})";
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
70
if (ApiConventionResult.TryGetApiConvention(action.
ActionMethod
, apiConventionAttributes, out var result))
ApplicationModels\ApplicationModelFactory.cs (2)
178
if (!actionsByMethod.TryGetValue(action.
ActionMethod
, out var actions))
181
actionsByMethod.Add(action.
ActionMethod
, actions);
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
35
MethodInfo = action.
ActionMethod
,
ApplicationModels\DefaultApplicationModelProvider.cs (1)
84
foreach (var parameterInfo in actionModel.
ActionMethod
.GetParameters())
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\ActionModelTest.cs (1)
22
var parameter = new ParameterModel(action.
ActionMethod
.GetParameters()[0],
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1165
var parameterInfo = actionModel.
ActionMethod
.GetParameters().Single();
ApplicationModels\DefaultApplicationModelProviderTest.cs (6)
180
var action = Assert.Single(controllerModel.Actions, a => a.
ActionMethod
.Name == nameof(ModelBinderController.PostAction));
224
var action = Assert.Single(controllerModel.Actions, a => a.
ActionMethod
.Name == nameof(ModelBinderController.FormFilesSequences));
326
var action = Assert.Single(controllerModel.Actions, a => a.
ActionMethod
== methodInfo);
346
var action = Assert.Single(controllerModel.Actions, a => a.
ActionMethod
== methodInfo);
366
var action = Assert.Single(controllerModel.Actions, a => a.
ActionMethod
== methodInfo);
1278
Assert.Equal(typeInfo, action.
ActionMethod
.DeclaringType.GetTypeInfo());