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