1 write to Constraints
Microsoft.AspNetCore.Routing (1)
RouteBase.cs (1)
55Constraints = GetConstraints(constraintResolver, ParsedTemplate, constraints);
23 references to Constraints
Microsoft.AspNetCore.Mvc.Core.Test (6)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (6)
29route.Constraints.OrderBy(kvp => kvp.Key), 64route.Constraints.OrderBy(kvp => kvp.Key), 105route.Constraints.OrderBy(kvp => kvp.Key), 152route.Constraints.OrderBy(kvp => kvp.Key), 205route.Constraints.OrderBy(kvp => kvp.Key), 243route.Constraints.OrderBy(kvp => kvp.Key),
Microsoft.AspNetCore.Routing (2)
RouteBase.cs (2)
129Constraints, 157Constraints,
Microsoft.AspNetCore.Routing.Tests (15)
RouteTest.cs (15)
192Assert.NotEmpty(route.Constraints); 193Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 234Assert.NotEmpty(route.Constraints); 235Assert.IsType<RegexInlineRouteConstraint>(route.Constraints["ssn"]); 276Assert.NotEmpty(route.Constraints); 277Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 319Assert.NotEmpty(route.Constraints); 320Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 321var innerConstraint = ((OptionalRouteConstraint)route.Constraints["id"]).InnerConstraint; 368Assert.NotEmpty(route.Constraints); 369Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 1599Assert.Empty(templateRoute.Constraints); 1639var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1660var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1681var constraints = ((Route)routeBuilder.Routes[0]).Constraints;