2 instantiations of Candidate
Microsoft.AspNetCore.Routing (2)
Matching\DfaMatcherBuilder.cs (2)
826
return new
Candidate
(
837
return new
Candidate
(
33 references to Candidate
Microsoft.AspNetCore.Routing (19)
Matching\CandidateSet.cs (1)
54
internal CandidateSet(
Candidate
[] candidates)
Matching\DfaMatcher.cs (11)
73
ref readonly
var
candidate = ref candidates[0];
76
if (candidate.Flags ==
Candidate
.CandidateFlags.None)
120
ref readonly
var
candidate = ref candidates[i];
127
if ((flags &
Candidate
.CandidateFlags.HasSlots) != 0)
136
if ((flags &
Candidate
.CandidateFlags.HasDefaults) != 0)
141
if ((flags &
Candidate
.CandidateFlags.HasCaptures) != 0)
146
if ((flags &
Candidate
.CandidateFlags.HasCatchAll) != 0)
158
if ((flags &
Candidate
.CandidateFlags.HasComplexSegments) != 0)
168
if ((flags &
Candidate
.CandidateFlags.HasConstraints) != 0)
209
internal (
Candidate
[] candidates, IEndpointSelectorPolicy[] policies) FindCandidateSet(
355
public static void CandidatesFound(ILogger logger, string path,
Candidate
[] candidates)
Matching\DfaMatcherBuilder.cs (5)
574
Array.Empty<
Candidate
>(),
705
internal
Candidate
[] CreateCandidates(IReadOnlyList<Endpoint> endpoints)
709
return Array.Empty<
Candidate
>();
712
var candiates = new
Candidate
[endpoints.Count];
735
internal
Candidate
CreateCandidate(Endpoint endpoint, int score)
Matching\DfaState.cs (2)
11
public readonly
Candidate
[] Candidates;
17
Candidate
[] candidates,
Microsoft.AspNetCore.Routing.Tests (14)
Matching\DfaMatcherBuilderTest.cs (14)
3197
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3217
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3241
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3271
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3303
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3334
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3365
var
candidate = builder.CreateCandidate(endpoint, score: 0);
3386
var
candidate1 = builder.CreateCandidate(endpoint1, score: 0);
3387
var
candidate2 = builder.CreateCandidate(endpoint2, score: 0);
3409
var
candidate1 = builder.CreateCandidate(endpoint1, score: 0);
3410
var
candidate2 = builder.CreateCandidate(endpoint2, score: 0);
3432
var
candidate1 = builder.CreateCandidate(endpoint1, score: 0);
3433
var
candidate2 = builder.CreateCandidate(endpoint2, score: 0);
3454
var
candidate = builder.CreateCandidate(endpoint, score: 0);