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