16 instantiations of InlineConstraint
Microsoft.AspNetCore.Routing (9)
InlineRouteParameterParser.cs (8)
133
inlineConstraints.Add(new
InlineConstraint
(constraintText));
147
inlineConstraints.Add(new
InlineConstraint
(constraintText));
152
inlineConstraints.Add(new
InlineConstraint
(constraintText));
158
inlineConstraints.Add(new
InlineConstraint
(constraintText));
173
inlineConstraints.Add(new
InlineConstraint
(constraintText));
200
inlineConstraints.Add(new
InlineConstraint
(constraintText));
204
inlineConstraints.Add(new
InlineConstraint
(constraintText));
213
inlineConstraints.Add(new
InlineConstraint
(constraintText));
Template\TemplatePart.cs (1)
44
InlineConstraints = parameter.ParameterPolicies?.Select(p => new
InlineConstraint
(p)) ?? Enumerable.Empty<InlineConstraint>();
Microsoft.AspNetCore.Routing.Tests (7)
Patterns\RoutePatternFactoryTest.cs (6)
627
var x = new
InlineConstraint
("x");
628
var y = new
InlineConstraint
("y");
629
var z = new
InlineConstraint
("z");
654
var x = new
InlineConstraint
("x");
655
var y = new
InlineConstraint
("y");
656
var z = new
InlineConstraint
("z");
Template\TemplateParserTests.cs (1)
476
var c = new
InlineConstraint
(constraint);
67 references to InlineConstraint
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
349
foreach (
var
constraint in routeParameter.InlineConstraints)
Microsoft.AspNetCore.Routing (13)
InlineRouteParameterParser.cs (3)
100
var inlineConstraints = new List<
InlineConstraint
>();
239
public readonly IEnumerable<
InlineConstraint
> Constraints;
241
public ConstraintParseResults(int currentIndex, IEnumerable<
InlineConstraint
> constraints)
RouteBase.cs (1)
226
foreach (
var
inlineConstraint in parameter.InlineConstraints)
Template\InlineConstraint.cs (2)
18
/// Creates a new instance of <see cref="
InlineConstraint
"/>.
29
/// Creates a new <see cref="
InlineConstraint
"/> instance given a <see cref="RoutePatternParameterPolicyReference"/>.
Template\TemplatePart.cs (5)
44
InlineConstraints = parameter.ParameterPolicies?.Select(p => new InlineConstraint(p)) ?? Enumerable.Empty<
InlineConstraint
>();
86
IEnumerable<
InlineConstraint
>? inlineConstraints)
97
InlineConstraints = inlineConstraints ?? Enumerable.Empty<
InlineConstraint
>(),
137
public IEnumerable<
InlineConstraint
> InlineConstraints { get; private set; } = Enumerable.Empty<
InlineConstraint
>();
Tree\TreeRouteBuilder.cs (2)
124
foreach (
var
constraint in parameter.InlineConstraints)
210
foreach (
var
constraint in parameter.InlineConstraints)
Microsoft.AspNetCore.Routing.Tests (53)
InlineRouteParameterParserTests.cs (43)
48
var
constraint = Assert.Single(templatePart.InlineConstraints);
61
var
constraint = Assert.Single(templatePart.InlineConstraints);
87
var
constraint = Assert.Single(templatePart.InlineConstraints);
101
var
constraint = Assert.Single(templatePart.InlineConstraints);
115
var
constraint = Assert.Single(templatePart.InlineConstraints);
130
var
constraint = Assert.Single(templatePart.InlineConstraints);
145
var
constraint = Assert.Single(templatePart.InlineConstraints);
159
var
constraint = Assert.Single(templatePart.InlineConstraints);
175
var
constraint = Assert.Single(templatePart.InlineConstraints);
269
var
constraint = Assert.Single(templatePart.InlineConstraints);
332
var
constraint = Assert.Single(templatePart.InlineConstraints);
347
var
constraint = Assert.Single(templatePart.InlineConstraints);
360
var
constraint = Assert.Single(templatePart.InlineConstraints);
375
var
constraint = Assert.Single(templatePart.InlineConstraints);
388
var
constraint = Assert.Single(templatePart.InlineConstraints);
403
var
constraint = Assert.Single(templatePart.InlineConstraints);
416
var
constraint = Assert.Single(templatePart.InlineConstraints);
431
var
constraint = Assert.Single(templatePart.InlineConstraints);
474
var
constraint = Assert.Single(templatePart.InlineConstraints);
487
var
constraint = Assert.Single(templatePart.InlineConstraints);
502
var
constraint = Assert.Single(templatePart.InlineConstraints);
518
var
constraint = Assert.Single(templatePart.InlineConstraints);
532
var
constraint = Assert.Single(templatePart.InlineConstraints);
557
var
constraint = Assert.Single(templatePart.InlineConstraints);
571
var
constraint = Assert.Single(templatePart.InlineConstraints);
629
var
constraint = Assert.Single(templatePart.InlineConstraints);
642
var
constraint = Assert.Single(templatePart.InlineConstraints);
655
var
constraint = Assert.Single(templatePart.InlineConstraints);
670
var
constraint = Assert.Single(templatePart.InlineConstraints);
683
var
constraint = Assert.Single(templatePart.InlineConstraints);
696
var
constraint = Assert.Single(templatePart.InlineConstraints);
709
var
constraint = Assert.Single(templatePart.InlineConstraints);
753
var
constraint = Assert.Single(templatePart.InlineConstraints);
768
var
constraint = Assert.Single(templatePart.InlineConstraints);
783
var
constraint = Assert.Single(templatePart.InlineConstraints);
798
var
constraint = Assert.Single(templatePart.InlineConstraints);
813
var
constraint = Assert.Single(templatePart.InlineConstraints);
828
var
constraint = Assert.Single(templatePart.InlineConstraints);
843
var
constraint = Assert.Single(templatePart.InlineConstraints);
874
var
constraint = Assert.Single(templatePart.InlineConstraints);
889
var
constraint = Assert.Single(templatePart.InlineConstraints);
904
var
constraint = Assert.Single(templatePart.InlineConstraints);
919
var
constraint = Assert.Single(templatePart.InlineConstraints);
Patterns\RoutePatternFactoryTest.cs (6)
627
var
x = new InlineConstraint("x");
628
var
y = new InlineConstraint("y");
629
var
z = new InlineConstraint("z");
654
var
x = new InlineConstraint("x");
655
var
y = new InlineConstraint("y");
656
var
z = new InlineConstraint("z");
Template\TemplateParserTests.cs (4)
476
var
c = new InlineConstraint(constraint);
482
inlineConstraints: new List<
InlineConstraint
> { c }));
890
foreach (
var
xconstraint in x.InlineConstraints)
892
if (!y.InlineConstraints.Any<
InlineConstraint
>(