33 references to CreateParameter
Microsoft.AspNetCore.Routing (2)
InlineRouteParameterParser.cs (2)
24return TemplatePart.CreateParameter( 88return TemplatePart.CreateParameter(parameterName,
Microsoft.AspNetCore.Routing.Tests (31)
Patterns\RoutePatternFactoryTest.cs (2)
631var templatePart = TemplatePart.CreateParameter("t", false, false, null, constraints); 658var templatePart = TemplatePart.CreateParameter("t", false, false, null, constraints);
Template\TemplateParserTests.cs (29)
36TemplatePart.CreateParameter("p", false, false, defaultValue: null, inlineConstraints: null)); 55TemplatePart.CreateParameter("p", false, true, defaultValue: null, inlineConstraints: null)); 95expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 103expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p2", 111expected.Segments[2].Parts.Add(TemplatePart.CreateParameter("p3", 134expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 156expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 179expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 186expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 209expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 232expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 238expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 262expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 268expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 292expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 298expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 305expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p3", 330expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 336expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 343expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p3", 368expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 374expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 384expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p3", 405expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p1", 412expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p2", 418expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p3", 442expected.Segments[0].Parts.Add(TemplatePart.CreateParameter("p2", 450expected.Segments[1].Parts.Add(TemplatePart.CreateParameter("p3", 478TemplatePart.CreateParameter("p1",