9 instantiations of StringRouteConstraint
Microsoft.AspNetCore.Mvc.Core (2)
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
159constraintsDictionary["area"] = constraintsDictionary["area"] ?? new StringRouteConstraint(areaName);
Builder\MvcAreaRouteBuilderExtensions.cs (1)
127constraintsDictionary["area"] = constraintsDictionary["area"] ?? new StringRouteConstraint(areaName);
Microsoft.AspNetCore.Routing.Tests (7)
Constraints\StringRouteConstraintTest.cs (7)
15var constraint = new StringRouteConstraint("home"); 35var constraint = new StringRouteConstraint("home"); 55var constraint = new StringRouteConstraint("admin"); 75var constraint = new StringRouteConstraint("admin"); 95var constraint = new StringRouteConstraint("admin"); 115var constraint = new StringRouteConstraint("admin"); 139var constraint = new StringRouteConstraint(constraintValue);
14 references to StringRouteConstraint
Microsoft.AspNetCore.Mvc.Core.Test (5)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (5)
33Assert.IsType<StringRouteConstraint>(kvp.Value); 68Assert.IsType<StringRouteConstraint>(kvp.Value); 109Assert.IsType<StringRouteConstraint>(kvp.Value); 156Assert.IsType<StringRouteConstraint>(kvp.Value); 247Assert.IsType<StringRouteConstraint>(kvp.Value);
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
258else if (constraint is GuidRouteConstraint or StringRouteConstraint)
Microsoft.AspNetCore.Routing (1)
Constraints\StringRouteConstraint.cs (1)
18/// Initializes a new instance of the <see cref="StringRouteConstraint"/> class.
Microsoft.AspNetCore.Routing.Tests (7)
Constraints\StringRouteConstraintTest.cs (7)
15var constraint = new StringRouteConstraint("home"); 35var constraint = new StringRouteConstraint("home"); 55var constraint = new StringRouteConstraint("admin"); 75var constraint = new StringRouteConstraint("admin"); 95var constraint = new StringRouteConstraint("admin"); 115var constraint = new StringRouteConstraint("admin"); 139var constraint = new StringRouteConstraint(constraintValue);