2 writes to Name
Microsoft.AspNetCore.Routing (2)
Template\TemplatePart.cs (2)
40
Name
= parameter.Name;
93
Name
= name,
90 references to Name
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
243
routeParameters.Add(routeParameter.
Name
!, CreateRouteInfo(routeParameter));
407
currentSegment += "{" + part.
Name
+ "}";
Microsoft.AspNetCore.Mvc.Core (1)
Routing\AttributeRoute.cs (1)
211
if (string.Equals(kvp.Key, parameter.
Name
, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing (15)
RouteBase.cs (5)
223
constraintBuilder.SetOptional(parameter.
Name
!);
228
constraintBuilder.AddResolvedConstraint(parameter.
Name
!, inlineConstraint.Constraint);
258
if (result.ContainsKey(parameter.
Name
!))
262
parameter.
Name
));
266
result.Add(parameter.
Name
!, parameter.DefaultValue);
Template\RouteTemplate.cs (1)
123
if (string.Equals(parameter.
Name
, name, StringComparison.OrdinalIgnoreCase))
Template\TemplateMatcher.cs (1)
53
if (Defaults.TryGetValue(part.
Name
!, out var value))
Template\TemplatePart.cs (2)
143
return "{" + (IsCatchAll ? "*" : string.Empty) +
Name
+ (IsOptional ? "?" : string.Empty) + "}";
174
return RoutePatternFactory.ParameterPart(
Name
!, DefaultValue, kind, constraints);
Tree\TreeRouteBuilder.cs (6)
122
constraintBuilder.SetOptional(parameter.
Name
);
126
constraintBuilder.AddResolvedConstraint(parameter.
Name
, constraint.Constraint);
152
entry.Defaults.Add(parameter.
Name
, parameter.DefaultValue);
207
constraintBuilder.SetOptional(parameter.
Name
);
212
constraintBuilder.AddResolvedConstraint(parameter.
Name
, constraint.Constraint);
224
entry.Defaults.Add(parameter.
Name
, parameter.DefaultValue);
Microsoft.AspNetCore.Routing.Tests (71)
InlineRouteParameterParserTests.cs (67)
22
Assert.Equal(parameterName, templatePart.
Name
);
34
Assert.Equal("param", templatePart.
Name
);
46
Assert.Equal("param", templatePart.
Name
);
59
Assert.Equal("param", templatePart.
Name
);
72
Assert.Equal("param", templatePart.
Name
);
84
Assert.Equal("param", templatePart.
Name
);
98
Assert.Equal("param", templatePart.
Name
);
112
Assert.Equal("param", templatePart.
Name
);
126
Assert.Equal("param", templatePart.
Name
);
141
Assert.Equal("param", templatePart.
Name
);
156
Assert.Equal("param", templatePart.
Name
);
170
Assert.Equal("param", templatePart.
Name
);
186
Assert.Equal("param", templatePart.
Name
);
200
Assert.Equal("param", templatePart.
Name
);
216
Assert.Equal("param", templatePart.
Name
);
230
Assert.Equal("param", templatePart.
Name
);
246
Assert.Equal("param", templatePart.
Name
);
266
Assert.Equal("comparison-operator", templatePart.
Name
);
283
Assert.Equal("p1", param1.
Name
);
293
Assert.Equal("p2", param2.
Name
);
298
Assert.Equal("p3", param3.
Name
);
309
Assert.Equal("world", templatePart.
Name
);
319
Assert.Equal("param", templatePart.
Name
);
330
Assert.Equal("param", templatePart.
Name
);
343
Assert.Equal("param", templatePart.
Name
);
358
Assert.Equal("param", templatePart.
Name
);
371
Assert.Equal("param", templatePart.
Name
);
386
Assert.Equal("param", templatePart.
Name
);
399
Assert.Equal("param", templatePart.
Name
);
414
Assert.Equal("param", templatePart.
Name
);
427
Assert.Equal(":param", templatePart.
Name
);
442
Assert.Equal(":param", templatePart.
Name
);
458
Assert.Equal(":param", templatePart.
Name
);
472
Assert.Equal("param", templatePart.
Name
);
485
Assert.Equal("par,am", templatePart.
Name
);
498
Assert.Equal("param", templatePart.
Name
);
513
Assert.Equal("param", templatePart.
Name
);
529
Assert.Equal("param", templatePart.
Name
);
543
Assert.Equal("param", templatePart.
Name
);
554
Assert.Equal("param", templatePart.
Name
);
568
Assert.Equal("param", templatePart.
Name
);
582
Assert.Equal("par", templatePart.
Name
);
593
Assert.Equal("param", templatePart.
Name
);
604
Assert.Equal("par", templatePart.
Name
);
615
Assert.Equal("par", templatePart.
Name
);
626
Assert.Equal("param", templatePart.
Name
);
640
Assert.Equal("param", templatePart.
Name
);
653
Assert.Equal("par{am", templatePart.
Name
);
666
Assert.Equal("param", templatePart.
Name
);
681
Assert.Equal("par(am", templatePart.
Name
);
694
Assert.Equal("param", templatePart.
Name
);
707
Assert.Equal("param", templatePart.
Name
);
720
Assert.Equal("param", templatePart.
Name
);
734
Assert.Equal("param", templatePart.
Name
);
750
Assert.Equal("param", templatePart.
Name
);
764
Assert.Equal("param", templatePart.
Name
);
779
Assert.Equal("param", templatePart.
Name
);
794
Assert.Equal("param", templatePart.
Name
);
809
Assert.Equal("param", templatePart.
Name
);
824
Assert.Equal("param", templatePart.
Name
);
839
Assert.Equal("par?am", templatePart.
Name
);
854
Assert.Equal("param", templatePart.
Name
);
870
Assert.Equal("param", templatePart.
Name
);
885
Assert.Equal("foo", templatePart.
Name
);
900
Assert.Equal("p1", templatePart.
Name
);
915
Assert.Equal("p1", templatePart.
Name
);
939
Assert.Equal(expectedParameterName, templatePart.
Name
);
Template\TemplateParserTests.cs (4)
872
!String.Equals(x.
Name
, y.
Name
, StringComparison.Ordinal) ||
873
!String.Equals(x.
Name
, y.
Name
, StringComparison.Ordinal) ||
Swaggatherer (1)
SwaggathererApplication.cs (1)
257
var length = Math.Min(text.Length, Math.Max(5, part.
Name
.Length));