15 instantiations of ActionSelectorCandidate
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ActionSelector.cs (1)
123candidates.Add(new ActionSelectorCandidate(action, constraints));
Routing\ActionConstraintMatcherPolicy.cs (1)
146items.Add((i, new ActionSelectorCandidate(actionDescriptor ?? NonAction, constraints)));
Microsoft.AspNetCore.Mvc.Core.Test (12)
ActionConstraints\HttpMethodActionConstraintTest.cs (1)
60var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint });
ConsumesAttributeTests.cs (11)
94new ActionSelectorCandidate(action, new [] { constraint }), 128new ActionSelectorCandidate(action1, new [] { constraint1 }), 166new ActionSelectorCandidate(action1, new [] { constraint1 }), 202new ActionSelectorCandidate(actionWithConstraint, new [] { constraint1 }), 203new ActionSelectorCandidate(actionWithConstraint2, new [] { constraint2 }), 204new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()), 241new ActionSelectorCandidate(actionWithConstraint, new [] { constraint1 }), 242new ActionSelectorCandidate(actionWithConstraint2, new [] { constraint2 }), 243new ActionSelectorCandidate(actionWithoutConstraint, new List<IActionConstraint>()), 281new ActionSelectorCandidate(actionWithConstraint, new [] { constraint1 }), 282new ActionSelectorCandidate(actionWithConstraint2, new [] { constraint2 }),
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsHttpMethodActionConstraintTest.cs (1)
76var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint });
32 references to ActionSelectorCandidate
Microsoft.AspNetCore.Mvc.Abstractions (6)
ActionConstraints\ActionConstraintContext.cs (5)
14/// The list of <see cref="ActionSelectorCandidate"/>. This includes all actions that are valid for the current 17public IReadOnlyList<ActionSelectorCandidate> Candidates { get; set; } = Array.Empty<ActionSelectorCandidate>(); 20/// The current <see cref="ActionSelectorCandidate"/>. 22public ActionSelectorCandidate CurrentCandidate { get; set; } = default!;
ActionConstraints\ActionSelectorCandidate.cs (1)
14/// Creates a new <see cref="ActionSelectorCandidate"/>.
Microsoft.AspNetCore.Mvc.Core (16)
ConsumesAttribute.cs (2)
182var firstCandidate = context.Candidates[0]; 196foreach (var candidate in context.Candidates)
Infrastructure\ActionSelector.cs (8)
116var candidates = new List<ActionSelectorCandidate>(actionsCount); 136var candidate = matches[i]; 144private IReadOnlyList<ActionSelectorCandidate>? EvaluateActionConstraintsCore( 146IReadOnlyList<ActionSelectorCandidate> candidates, 156var candidate = candidates[i]; 179var actionsWithConstraint = new List<ActionSelectorCandidate>(); 180var actionsWithoutConstraint = new List<ActionSelectorCandidate>(); 191var candidate = candidates[i];
Routing\ActionConstraintMatcherPolicy.cs (6)
102private IReadOnlyList<(int index, ActionSelectorCandidate candidate)>? EvaluateActionConstraints( 106var items = new List<(int index, ActionSelectorCandidate candidate)>(); 154private static IReadOnlyList<(int index, ActionSelectorCandidate candidate)>? EvaluateActionConstraintsCore( 157IReadOnlyList<(int index, ActionSelectorCandidate candidate)> items, 191var endpointsWithConstraint = new List<(int index, ActionSelectorCandidate candidate)>(); 192var endpointsWithoutConstraint = new List<(int index, ActionSelectorCandidate candidate)>();
Microsoft.AspNetCore.Mvc.Core.Test (8)
ActionConstraints\HttpMethodActionConstraintTest.cs (2)
60var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint }); 62context.Candidates = new List<ActionSelectorCandidate> { actionSelectorCandidate };
ConsumesAttributeTests.cs (6)
92context.Candidates = new List<ActionSelectorCandidate>() 126context.Candidates = new List<ActionSelectorCandidate>() 164context.Candidates = new List<ActionSelectorCandidate>() 200context.Candidates = new List<ActionSelectorCandidate>() 239context.Candidates = new List<ActionSelectorCandidate>() 279context.Candidates = new List<ActionSelectorCandidate>()
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsHttpMethodActionConstraintTest.cs (2)
76var actionSelectorCandidate = new ActionSelectorCandidate(new ActionDescriptor(), new List<IActionConstraint> { constraint }); 78context.Candidates = new List<ActionSelectorCandidate> { actionSelectorCandidate };