21 references to RegexRouteConstraint
Microsoft.AspNetCore.Routing (3)
Constraints\RegexInlineRouteConstraint.cs (1)
26
:
base
(regexPattern)
Patterns\RoutePatternFactory.cs (1)
955
return ParameterPolicyCore(new
RegexRouteConstraint
("^(" + content + ")$"));
RouteConstraintBuilder.cs (1)
115
constraint = new
RegexRouteConstraint
(constraintsRegEx);
Microsoft.AspNetCore.Routing.Tests (18)
Constraints\RegexRouteConstraintTests.cs (2)
30
var constraint = new
RegexRouteConstraint
(constraintValue);
115
var constraint = new
RegexRouteConstraint
("^([a-z]+)$");
DefaultLinkGeneratorProcessTemplateTest.cs (3)
675
policies: new { p2 = new
RegexRouteConstraint
("\\d{4}"), });
701
policies: new { p2 = new
RegexRouteConstraint
("\\d{4}") });
725
policies: new { p2 = new
RegexRouteConstraint
("\\d{4}") });
DefaultParameterPolicyFactoryTest.cs (1)
570
:
base
(regexPattern)
Patterns\DefaultRoutePatternTransformerTest.cs (2)
216
var policies = new { controller = "Home", action = new
RegexRouteConstraint
("Index"), };
238
var policies = new { controller = "Home", action = new
RegexRouteConstraint
("Index"), };
Patterns\RoutePatternFactoryTest.cs (10)
142
var constraints = new { a = new
RegexRouteConstraint
("foo"), b = new
RegexRouteConstraint
("bar") };
187
var constraints = new { d = new
RegexRouteConstraint
("foo"), e = new
RegexRouteConstraint
("bar") };
223
var constraints = new { d = new object[] { new
RegexRouteConstraint
("foo"), new
RegexRouteConstraint
("bar"), "baz" } };
254
var constraints = new { b = "fizz", c = new object[] { new
RegexRouteConstraint
("foo"), new
RegexRouteConstraint
("bar"), "baz" } };
800
var policies = new { X = new
RegexRouteConstraint
("x"), };
840
var right = RoutePatternFactory.Parse("/b", defaults: null, parameterPolicies: new { X = new
RegexRouteConstraint
("foo") });