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