14 references to SetParameterPolicy
Microsoft.AspNetCore.Routing (2)
RegexInlineRouteConstraintSetup.cs (1)
21
options.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
RouteOptions.cs (1)
97
/// <see cref="
SetParameterPolicy
{T}(string)"/> ensures that types are added to the constraint map in a trimmer safe way.
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
20
routeOptions.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
32
routeOptions.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Routing.Tests (9)
DefaultInlineConstraintResolverTest.cs (2)
19
routeOptions.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
300
routeOptions.
SetParameterPolicy
<CustomRouteConstraint>("custom");
Matching\RouteMatcherBuilder.cs (1)
20
routeOptions.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
Matching\TreeRouterMatcherBuilder.cs (1)
32
routeOptions.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
RouteTest.cs (1)
1864
options.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
RoutingServiceCollectionExtensionsTests.cs (1)
71
options.
SetParameterPolicy
<DummyRegexRouteConstraint>("regex");
TemplateParserDefaultValuesTests.cs (2)
133
options.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
149
accessor.Value.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
Tree\TreeRouterTest.cs (1)
2061
options.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2646
options.
SetParameterPolicy
<RegexInlineRouteConstraint>("regex");