2 writes to Constraints
Microsoft.AspNetCore.Routing (2)
Matching\Candidate.cs (2)
58Constraints = Array.Empty<KeyValuePair<string, IRouteConstraint>>(); 79Constraints = constraints;
15 references to Constraints
Microsoft.AspNetCore.Routing (1)
Matching\DfaMatcher.cs (1)
171if (!ProcessConstraints(candidate.Endpoint, candidate.Constraints, httpContext, state.Values))
Microsoft.AspNetCore.Routing.Tests (14)
Matching\DfaMatcherBuilderTest.cs (14)
3205Assert.Empty(candidate.Constraints); 3229Assert.Empty(candidate.Constraints); 3259Assert.Empty(candidate.Constraints); 3290Assert.Empty(candidate.Constraints); 3322Assert.Empty(candidate.Constraints); 3353Assert.Empty(candidate.Constraints); 3373Assert.Single(candidate.Constraints); 3391var constraint1 = Assert.Single(candidate1.Constraints); 3394var constraint2 = Assert.Single(candidate2.Constraints); 3414var constraint1 = Assert.Single(candidate1.Constraints); 3417var constraint2 = Assert.Single(candidate2.Constraints); 3437var constraint1 = Assert.Single(candidate1.Constraints); 3440var constraint2 = Assert.Single(candidate2.Constraints); 3462Assert.Empty(candidate.Constraints);