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