14 references to SetParameterPolicy
Microsoft.AspNetCore.Routing (2)
RegexInlineRouteConstraintSetup.cs (1)
21options.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)
20routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
32routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Routing.Tests (9)
DefaultInlineConstraintResolverTest.cs (2)
19routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex"); 300routeOptions.SetParameterPolicy<CustomRouteConstraint>("custom");
Matching\RouteMatcherBuilder.cs (1)
20routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Matching\TreeRouterMatcherBuilder.cs (1)
32routeOptions.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
RouteTest.cs (1)
1864options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
RoutingServiceCollectionExtensionsTests.cs (1)
71options.SetParameterPolicy<DummyRegexRouteConstraint>("regex");
TemplateParserDefaultValuesTests.cs (2)
133options.SetParameterPolicy<RegexInlineRouteConstraint>("regex"); 149accessor.Value.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Tree\TreeRouterTest.cs (1)
2060options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2646options.SetParameterPolicy<RegexInlineRouteConstraint>("regex");