2 writes to Score
Microsoft.AspNetCore.Routing (2)
Matching\CandidateState.cs (2)
16Score = score; 24Score = score;
32 references to Score
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (2)
117if (score != null && score != candidate.Score) 130score = candidate.Score;
Microsoft.AspNetCore.Routing (9)
Matching\CandidateSet.cs (6)
34/// <param name="scores">The list of endpoint scores. <see cref="CandidateState.Score"/>.</param> 122return candidate.Score >= 0; 146var originalScore = candidate.Score; 175Candidates[index] = new CandidateState(endpoint!, values, Candidates[index].Score); 305Candidates[i + endpoints.Count - 1] = new CandidateState(original[i].Endpoint, original[i].Values, original[i].Score + scoreOffset); 317var score = Candidates[index].Score;
Matching\DefaultEndpointSelector.cs (3)
76foundScore = state.Score; 78else if (foundScore < state.Score) 86else if (foundScore == state.Score)
Microsoft.AspNetCore.Routing.Tests (21)
Matching\CandidateSetTest.cs (15)
36Assert.Equal(candidates[i].Score, state.Score); 179Assert.Equal(0, candidateSet[0].Score); 181Assert.Equal(0, candidateSet[1].Score); 183Assert.Equal(1, candidateSet[2].Score); 189Assert.Equal(i - 1, candidateSet[i].Score); 232Assert.Equal(i, candidateSet[i].Score); 236Assert.Equal(5, candidateSet[5].Score); 238Assert.Equal(5, candidateSet[6].Score); 240Assert.Equal(6, candidateSet[7].Score); 246Assert.Equal(i - 1, candidateSet[i].Score); 289Assert.Equal(i, candidateSet[i].Score); 293Assert.Equal(9, candidateSet[9].Score); 295Assert.Equal(9, candidateSet[10].Score); 297Assert.Equal(10, candidateSet[11].Score); 361Assert.Equal(i, state.Score);
Matching\DfaMatcherTest.cs (6)
655Assert.Equal(0, cs[0].Score); 660Assert.Equal(1, cs[1].Score); 701Assert.Equal(0, cs[0].Score); 706Assert.Equal(1, cs[1].Score); 748Assert.Equal(0, cs[0].Score); 753Assert.Equal(1, cs[1].Score);