8 instantiations of CandidateState
Microsoft.AspNetCore.Routing (8)
Matching\CandidateSet.cs (7)
49
Candidates[i] = new
CandidateState
(endpoints[i], values[i], scores[i]);
59
Candidates[i] = new
CandidateState
(candidates[i].Endpoint, candidates[i].Score);
148
candidate = new
CandidateState
(candidate.Endpoint, candidate.Values, score);
175
Candidates[index] = new
CandidateState
(endpoint!, values, Candidates[index].Score);
281
candidates[index] = new
CandidateState
(buffer[0], values, score);
300
Candidates[i + index] = new
CandidateState
(buffer[i], values, score + scoreOffset);
305
Candidates[i + endpoints.Count - 1] = new
CandidateState
(original[i].Endpoint, original[i].Values, original[i].Score + scoreOffset);
Matching\DfaMatcher.cs (1)
122
state = new
CandidateState
(candidate.Endpoint, candidate.Score);
36 references to CandidateState
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (2)
116
ref
var
candidate = ref candidateSet[i];
217
ref
var
candidate = ref candidateSet[item.index];
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
67
ref
var
candidate = ref candidates[i];
108
var
candidate = candidates[i];
Microsoft.AspNetCore.Routing (23)
Matching\CandidateSet.cs (12)
20
internal
CandidateState
[] Candidates;
34
/// <param name="scores">The list of endpoint scores. <see cref="
CandidateState
.Score"/>.</param>
46
Candidates = new
CandidateState
[endpoints.Length];
56
Candidates = new
CandidateState
[candidates.Length];
63
internal CandidateSet(
CandidateState
[] candidates)
74
/// Gets the <see cref="
CandidateState
"/> associated with the candidate <see cref="Endpoint"/>
79
/// A reference to the <see cref="
CandidateState
"/>. The result is returned by reference.
81
public ref
CandidateState
this[int index]
120
internal static bool IsValidCandidate(ref
CandidateState
candidate)
140
ref
var
original = ref Candidates[index];
144
internal static void SetValidity(ref
CandidateState
candidate, bool value)
246
var candidates = new
CandidateState
[original.Length - 1 + endpoints.Count];
Matching\DefaultEndpointSelector.cs (6)
22
internal static void Select(HttpContext httpContext, Span<
CandidateState
> candidateState)
36
ref
var
state = ref candidateState[0];
58
Span<
CandidateState
> candidateState)
65
ref
var
state = ref candidateState[i];
107
private static void ReportAmbiguity(Span<
CandidateState
> candidateState)
114
ref
var
state = ref candidateState[i];
Matching\DfaMatcher.cs (4)
103
CandidateState
[]? candidateStateArray = null;
110
? ((Span<
CandidateState
>)candidateStateStackArray)[..candidateCount]
111
: (candidateStateArray = new
CandidateState
[candidateCount]);
341
private
CandidateState
_value0;
Matching\NegotiationMatcherPolicy.cs (1)
108
ref
var
candidate = ref candidates[i];
Microsoft.AspNetCore.Routing.Tests (9)
Matching\CandidateSetTest.cs (9)
33
ref
var
state = ref candidateSet[i];
62
ref
var
state = ref candidateSet[i];
95
ref
var
state = ref candidateSet[i];
137
ref
var
state = ref candidateSet[i];
187
ref
var
state = ref candidateSet[i];
230
ref
var
state = ref candidateSet[i];
244
ref
var
state = ref candidateSet[i];
287
ref
var
state = ref candidateSet[i];
358
ref
var
state = ref candidateSet[i];