2 overrides of Create
Microsoft.AspNetCore.Routing (2)
DefaultParameterPolicyFactory.cs (1)
35
public override IParameterPolicy
Create
(RoutePatternParameterPart? parameter, string inlineText)
Matching\DfaMatcherBuilder.cs (1)
127
public override IParameterPolicy
Create
(RoutePatternParameterPart parameter, string inlineText)
18 references to Create
Microsoft.AspNetCore.Routing (3)
MapRouteRouteBuilderExtensions.cs (1)
161
var parameterPolicy = _parameterPolicyFactory.
Create
(null!, inlineConstraint);
Matching\DfaMatcherBuilder.cs (1)
138
parameterPolicy = _inner.
Create
(parameter, inlineText);
ParameterPolicyFactory.cs (1)
49
return
Create
(parameter, reference.Content);
Microsoft.AspNetCore.Routing.Tests (15)
DefaultParameterPolicyFactoryTest.cs (15)
22
() => factory.
Create
(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), @"notpresent(\d+)"));
44
() => factory.
Create
(RoutePatternFactory.ParameterPart("id"), @"bad"));
156
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "int");
169
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "range(1,20)");
184
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "int");
204
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "customParameterPolicy");
223
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20)");
244
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20,-1)");
267
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy");
288
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)");
309
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)");
332
() => factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(1)"));
352
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id"), @"regex-service(\\d{1,2})");
373
() => factory.
Create
(RoutePatternFactory.ParameterPart("id"), "customConstraintPolicy(20)"));
393
var parameterPolicy = factory.
Create
(RoutePatternFactory.ParameterPart("id", @default: null, RoutePatternParameterKind.Optional), "customParameterPolicy");