14 writes to Precedence
Microsoft.AspNetCore.Routing (2)
RouteValuesAddressScheme.cs (1)
155Precedence = RoutePrecedence.ComputeOutbound(endpoint.RoutePattern),
Tree\TreeRouteBuilder.cs (1)
194Precedence = RoutePrecedence.ComputeOutbound(routeTemplate),
Microsoft.AspNetCore.Routing.Tests (12)
Tree\LinkGenerationDecisionTreeTest.cs (4)
267entry1.Entry.Precedence = 0; 272entry2.Entry.Precedence = 1; 294entry1.Entry.Precedence = 1; 298entry2.Entry.Precedence = 0;
Tree\TreeRouterTest.cs (8)
1503entry1.Precedence = 2; 1506entry2.Precedence = 1; 1528entry1.Precedence = 1; 1531entry2.Precedence = 2; 1553entry1.Precedence = 2; 1556entry2.Precedence = 1; 1580entry1.Precedence = 2; 1583entry2.Precedence = 1;
12 references to Precedence
Microsoft.AspNetCore.Mvc.Core.Test (5)
Routing\AttributeRouteTest.cs (5)
148Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.Precedence); 192Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.Precedence); 236Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.Precedence); 297Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.Precedence); 307Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.Precedence);
Microsoft.AspNetCore.Routing (7)
Tree\LinkGenerationDecisionTree.cs (4)
198if (x.Match.Entry.Precedence != y.Match.Entry.Precedence) 201return y.Match.Entry.Precedence.CompareTo(x.Match.Entry.Precedence);
Tree\OutboundRouteEntry.cs (3)
35/// Entries are ordered first by <see cref="Order"/> (ascending) then by <see cref="Precedence"/> (descending). 41/// <see cref="Precedence"/> means that an entry is considered first. 44/// Entries are ordered first by <see cref="Order"/> (ascending) then by <see cref="Precedence"/> (descending).