1 write to RouteTemplate
Microsoft.AspNetCore.Routing (1)
Tree\TreeRouteBuilder.cs (1)
103
RouteTemplate
= routeTemplate,
21 references to RouteTemplate
Microsoft.AspNetCore.Mvc.Core.Test (12)
Routing\AttributeRouteTest.cs (12)
351
Assert.Equal(RoutePrecedence.ComputeInbound(e.
RouteTemplate
), e.Precedence);
353
Assert.Equal("api/Blog/{id}", e.
RouteTemplate
.TemplateText);
394
Assert.Equal(RoutePrecedence.ComputeInbound(e.
RouteTemplate
), e.Precedence);
396
Assert.Equal("api/Blog/{id:int}", e.
RouteTemplate
.TemplateText);
437
Assert.Equal(RoutePrecedence.ComputeInbound(e.
RouteTemplate
), e.Precedence);
439
Assert.Equal("api/Blog/{*slug=hello}", e.
RouteTemplate
.TemplateText);
499
Assert.Equal(RoutePrecedence.ComputeInbound(e.
RouteTemplate
), e.Precedence);
501
Assert.Equal("api/Blog/{id}", e.
RouteTemplate
.TemplateText);
699
Assert.Equal("blog/get/{id}", e.
RouteTemplate
.TemplateText);
704
Assert.Equal("blog/{snake-cased-name}", e.
RouteTemplate
.TemplateText);
755
Assert.Equal("blog/get/{id}", e.
RouteTemplate
.TemplateText);
760
Assert.Equal("blog/", e.
RouteTemplate
.TemplateText);
Microsoft.AspNetCore.Routing (9)
Tree\InboundRouteEntry.cs (1)
70
/// Gets or sets the <see cref="
RouteTemplate
"/>.
Tree\TreeRouteBuilder.cs (1)
148
foreach (var parameter in entry.
RouteTemplate
.Parameters)
Tree\TreeRouter.cs (1)
211
Log.RequestMatchedRoute(_logger, entry.RouteName, entry.
RouteTemplate
.TemplateText);
Tree\UrlMatchingTree.cs (6)
76
var matcher = new TemplateMatcher(entry.
RouteTemplate
, entry.Defaults);
77
for (var i = 0; i < entry.
RouteTemplate
.Segments.Count; i++)
79
var segment = entry.
RouteTemplate
.Segments[i];
129
RemainingSegmentsAreOptional(entry.
RouteTemplate
.Segments, i))
239
return result == 0 ? string.Compare(x.Entry.
RouteTemplate
.TemplateText, y.Entry.
RouteTemplate
.TemplateText, StringComparison.Ordinal) : result;