10 instantiations of PolicyJumpTableEdge
Microsoft.AspNetCore.Routing (1)
Matching\DfaMatcherBuilder.cs (1)
641policyEntries[index++] = new PolicyJumpTableEdge(kvp.Key, Transition(kvp.Value));
Microsoft.AspNetCore.Routing.Tests (9)
Matching\AcceptsMatcherPolicyTest.cs (8)
289new PolicyJumpTableEdge(string.Empty, 0), 290new PolicyJumpTableEdge("*/*", 1), 291new PolicyJumpTableEdge("application/*", 2), 292new PolicyJumpTableEdge("text/*", 3), 293new PolicyJumpTableEdge("application/*+xml", 4), 294new PolicyJumpTableEdge("application/*+json", 5), 295new PolicyJumpTableEdge("application/json", 6), 296new PolicyJumpTableEdge("application/xml", 7),
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
625var table = policy.BuildJumpTable(-100, edges.Select((e, i) => new PolicyJumpTableEdge(e.State, i + 1)).ToArray());
22 references to PolicyJumpTableEdge
Microsoft.AspNetCore.Routing (14)
Matching\AcceptsMatcherPolicy.cs (3)
260public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 269var e = edges[i]; 305private static ReadOnlyMediaTypeHeaderValue CreateEdgeMediaType(ref PolicyJumpTableEdge e)
Matching\DfaMatcherBuilder.cs (3)
594PolicyJumpTableEdge[] policyEntries = null; 636policyEntries = new PolicyJumpTableEdge[node.PolicyEdges.Count]; 693private static PolicyJumpTable BuildPolicy(int exitDestination, INodeBuilderPolicy nodeBuilder, PolicyJumpTableEdge[] policyEntries)
Matching\HostMatcherPolicy.cs (2)
287public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 296PolicyJumpTableEdge e = edges[i];
Matching\HttpMethodMatcherPolicy.cs (1)
311public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Matching\INodeBuilderPolicy.cs (2)
31/// <param name="edges">A list of <see cref="PolicyJumpTableEdge"/>.</param> 33PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges);
Matching\NegotiationMatcherPolicy.cs (2)
329PolicyJumpTable INodeBuilderPolicy.BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 336var e = edges[i];
Matching\PolicyJumpTableEdge.cs (1)
12/// Constructs a new <see cref="PolicyJumpTableEdge"/> instance.
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Matching\HttpMethodMatcherPolicyBenchmark.cs (1)
13private List<PolicyJumpTableEdge> _edges = new();
Matching\MatcherBuilderMultipleEntryBenchmark.cs (2)
116public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 138public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Microsoft.AspNetCore.Routing.Tests (5)
Matching\AcceptsMatcherPolicyTest.cs (1)
286var edges = new PolicyJumpTableEdge[]
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (1)
427var edges = new PolicyJumpTableEdge[]
Matching\DfaMatcherBuilderTest.cs (3)
3596public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 3638public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges) 3664public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)