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