2 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)));
22 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)>();