37 references to SetValidity
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionConstraintMatcherPolicy.cs (2)
85candidateSet.SetValidity(i, false); 92candidateSet.SetValidity(finalMatches[i].index, true);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (1)
109candidates.SetValidity(0, false);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
126candidates.SetValidity(0, false);
Microsoft.AspNetCore.Mvc.Test (2)
Routing\ActionConstraintMatcherPolicyTest.cs (2)
203candidateSet.SetValidity(0, false); 204candidateSet.SetValidity(1, false);
Microsoft.AspNetCore.Routing (10)
Matching\AcceptsMatcherPolicy.cs (1)
125candidates.SetValidity(i, false);
Matching\CandidateSet.cs (1)
179SetValidity(index, false);
Matching\HostMatcherPolicy.cs (1)
143candidates.SetValidity(i, false);
Matching\HttpMethodMatcherPolicy.cs (1)
145candidates.SetValidity(i, false);
Matching\IEndpointSelectorPolicy.cs (1)
37/// <see cref="CandidateSet.SetValidity(int, bool)"/> to <c>false</c> where desired.
Matching\NegotiationMatcherPolicy.cs (5)
132candidates.SetValidity(i, false); 166candidates.SetValidity(j, false); 174candidates.SetValidity(currentIndex, false); 186candidates.SetValidity(j, false); 194candidates.SetValidity(currentIndex, false);
Microsoft.AspNetCore.Routing.Tests (21)
Matching\CandidateSetTest.cs (5)
39candidateSet.SetValidity(i, false); 170candidateSet.SetValidity(0, false); // Has no effect. We always count new stuff as valid by default. 220candidateSet.SetValidity(5, false); // Has no effect. We always count new stuff as valid by default. 277candidateSet.SetValidity(9, false); // Has no effect. We always count new stuff as valid by default. 365candidateSet.SetValidity(i, false);
Matching\DefaultEndpointSelectorTest.cs (15)
38candidateSet.SetValidity(0, false); 59candidateSet.SetValidity(0, true); 79candidateSet.SetValidity(0, false); 80candidateSet.SetValidity(1, true); 100candidateSet.SetValidity(0, false); 101candidateSet.SetValidity(1, true); 102candidateSet.SetValidity(2, true); 129candidateSet.SetValidity(0, false); 130candidateSet.SetValidity(1, false); 131candidateSet.SetValidity(2, false); 132candidateSet.SetValidity(3, false); 133candidateSet.SetValidity(4, true); 153candidateSet.SetValidity(0, false); 154candidateSet.SetValidity(1, true); 155candidateSet.SetValidity(2, true);
Matching\DfaMatcherTest.cs (1)
965cs.SetValidity(1, false);