4 writes to Candidates
Microsoft.AspNetCore.Routing (4)
Matching\CandidateSet.cs (4)
46Candidates = new CandidateState[endpoints.Length]; 56Candidates = new CandidateState[candidates.Length]; 65Candidates = candidates; 247Candidates = candidates;
16 references to Candidates
Microsoft.AspNetCore.Routing (16)
Matching\CandidateSet.cs (15)
49Candidates[i] = new CandidateState(endpoints[i], values[i], scores[i]); 59Candidates[i] = new CandidateState(candidates[i].Endpoint, candidates[i].Score); 71public int Count => Candidates.Length; 96return ref Candidates[index]; 117return IsValidCandidate(ref Candidates[index]); 140ref var original = ref Candidates[index]; 175Candidates[index] = new CandidateState(endpoint!, values, Candidates[index].Score); 236ReplaceEndpoint(index, endpoints[0], Candidates[index].Values); 242var values = Candidates[index].Values; 245var original = Candidates; 300Candidates[i + index] = new CandidateState(buffer[i], values, score + scoreOffset); 305Candidates[i + endpoints.Count - 1] = new CandidateState(original[i].Endpoint, original[i].Values, original[i].Score + scoreOffset); 317var score = Candidates[index].Score; 326var candidates = Candidates;
Matching\DefaultEndpointSelector.cs (1)
18Select(httpContext, candidateSet.Candidates);