33 writes to RouteTemplate
Microsoft.AspNetCore.Routing (2)
RouteValuesAddressScheme.cs (1)
157
RouteTemplate
= new RouteTemplate(endpoint.RoutePattern),
Tree\TreeRouteBuilder.cs (1)
197
RouteTemplate
= routeTemplate,
Microsoft.AspNetCore.Routing.Tests (31)
Tree\LinkGenerationDecisionTreeTest.cs (31)
320
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
324
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
345
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
349
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
373
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
377
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
401
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
405
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
429
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
433
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
456
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
460
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
484
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
488
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
512
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
516
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
539
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
543
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
566
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
570
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
591
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
595
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
616
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
620
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
643
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
647
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
670
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
674
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
695
entry1.Entry.
RouteTemplate
= TemplateParser.Parse("a");
699
entry2.Entry.
RouteTemplate
= TemplateParser.Parse("b");
749
match.Entry.
RouteTemplate
= new RouteTemplate(RoutePatternFactory.Parse(routeTemplate));
23 references to RouteTemplate
Microsoft.AspNetCore.Mvc.Core.Test (14)
Routing\AttributeRouteTest.cs (14)
148
Assert.Equal(RoutePrecedence.ComputeOutbound(e.
RouteTemplate
), e.Precedence);
152
Assert.Equal("api/Blog/{id}", e.
RouteTemplate
.TemplateText);
192
Assert.Equal(RoutePrecedence.ComputeOutbound(e.
RouteTemplate
), e.Precedence);
196
Assert.Equal("api/Blog/{id:int}", e.
RouteTemplate
.TemplateText);
236
Assert.Equal(RoutePrecedence.ComputeOutbound(e.
RouteTemplate
), e.Precedence);
240
Assert.Equal("api/Blog/{*slug=hello}", e.
RouteTemplate
.TemplateText);
297
Assert.Equal(RoutePrecedence.ComputeOutbound(e.
RouteTemplate
), e.Precedence);
301
Assert.Equal("api/Blog/{id}", e.
RouteTemplate
.TemplateText);
307
Assert.Equal(RoutePrecedence.ComputeOutbound(e.
RouteTemplate
), e.Precedence);
311
Assert.Equal("api/Blog/{id}", e.
RouteTemplate
.TemplateText);
587
Assert.Equal("blog/{snake-cased-name}", e.
RouteTemplate
.TemplateText);
592
Assert.Equal("blog/", e.
RouteTemplate
.TemplateText);
643
Assert.Equal("blog/get/{id}", e.
RouteTemplate
.TemplateText);
648
Assert.Equal("blog/", e.
RouteTemplate
.TemplateText);
Microsoft.AspNetCore.Routing (9)
Tree\LinkGenerationDecisionTree.cs (3)
211
x.Match.Entry.
RouteTemplate
.TemplateText,
212
y.Match.Entry.
RouteTemplate
.TemplateText,
248
sb.AppendJoin(", ", node.Matches.Select(m => m.Entry.
RouteTemplate
.TemplateText));
Tree\OutboundRouteEntry.cs (1)
59
/// Gets or sets the <see cref="
RouteTemplate
"/>.
Tree\TreeRouteBuilder.cs (1)
220
foreach (var parameter in entry.
RouteTemplate
.Parameters)
Tree\TreeRouter.cs (4)
94
var binder = new TemplateBinder(urlEncoder, objectPool, entry.
RouteTemplate
, entry.Defaults);
109
namedMatch.Entry.
RouteTemplate
.TemplateText,
110
entry.
RouteTemplate
.TemplateText,
301
var parameter = entry.
RouteTemplate
.GetParameter(kvp.Key);