2 instantiations of ActionSelectorCandidate
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\ActionSelector.cs (1)
123
candidates.Add(new
ActionSelectorCandidate
(action, constraints));
Routing\ActionConstraintMatcherPolicy.cs (1)
146
items.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
17
public IReadOnlyList<
ActionSelectorCandidate
> Candidates { get; set; } = Array.Empty<
ActionSelectorCandidate
>();
20
/// The current <see cref="
ActionSelectorCandidate
"/>.
22
public
ActionSelectorCandidate
CurrentCandidate { get; set; } = default!;
ActionConstraints\ActionSelectorCandidate.cs (1)
14
/// Creates a new <see cref="
ActionSelectorCandidate
"/>.
Microsoft.AspNetCore.Mvc.Core (16)
ConsumesAttribute.cs (2)
182
var
firstCandidate = context.Candidates[0];
196
foreach (
var
candidate in context.Candidates)
Infrastructure\ActionSelector.cs (8)
116
var candidates = new List<
ActionSelectorCandidate
>(actionsCount);
136
var
candidate = matches[i];
144
private IReadOnlyList<
ActionSelectorCandidate
>? EvaluateActionConstraintsCore(
146
IReadOnlyList<
ActionSelectorCandidate
> candidates,
156
var
candidate = candidates[i];
179
var actionsWithConstraint = new List<
ActionSelectorCandidate
>();
180
var actionsWithoutConstraint = new List<
ActionSelectorCandidate
>();
191
var
candidate = candidates[i];
Routing\ActionConstraintMatcherPolicy.cs (6)
102
private IReadOnlyList<(int index,
ActionSelectorCandidate
candidate)>? EvaluateActionConstraints(
106
var items = new List<(int index,
ActionSelectorCandidate
candidate)>();
154
private static IReadOnlyList<(int index,
ActionSelectorCandidate
candidate)>? EvaluateActionConstraintsCore(
157
IReadOnlyList<(int index,
ActionSelectorCandidate
candidate)> items,
191
var endpointsWithConstraint = new List<(int index,
ActionSelectorCandidate
candidate)>();
192
var endpointsWithoutConstraint = new List<(int index,
ActionSelectorCandidate
candidate)>();