14 writes to Precedence
Microsoft.AspNetCore.Routing (2)
RouteValuesAddressScheme.cs (1)
155
Precedence
= RoutePrecedence.ComputeOutbound(endpoint.RoutePattern),
Tree\TreeRouteBuilder.cs (1)
194
Precedence
= RoutePrecedence.ComputeOutbound(routeTemplate),
Microsoft.AspNetCore.Routing.Tests (12)
Tree\LinkGenerationDecisionTreeTest.cs (4)
267
entry1.Entry.
Precedence
= 0;
272
entry2.Entry.
Precedence
= 1;
294
entry1.Entry.
Precedence
= 1;
298
entry2.Entry.
Precedence
= 0;
Tree\TreeRouterTest.cs (8)
1503
entry1.
Precedence
= 2;
1506
entry2.
Precedence
= 1;
1528
entry1.
Precedence
= 1;
1531
entry2.
Precedence
= 2;
1553
entry1.
Precedence
= 2;
1556
entry2.
Precedence
= 1;
1580
entry1.
Precedence
= 2;
1583
entry2.
Precedence
= 1;
12 references to Precedence
Microsoft.AspNetCore.Mvc.Core.Test (5)
Routing\AttributeRouteTest.cs (5)
148
Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.
Precedence
);
192
Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.
Precedence
);
236
Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.
Precedence
);
297
Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.
Precedence
);
307
Assert.Equal(RoutePrecedence.ComputeOutbound(e.RouteTemplate), e.
Precedence
);
Microsoft.AspNetCore.Routing (7)
Tree\LinkGenerationDecisionTree.cs (4)
198
if (x.Match.Entry.
Precedence
!= y.Match.Entry.
Precedence
)
201
return 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).