4 instantiations of EdgeKey
Microsoft.AspNetCore.Routing (4)
Matching\HostMatcherPolicy.cs (4)
164return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 173return new EdgeKey(hostSpan[hostParts[0]].ToString(), port); 177return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 400internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null);
22 references to EdgeKey
Microsoft.AspNetCore.Routing (22)
Matching\HostMatcherPolicy.cs (22)
59var key = CreateEdgeKey(host); 150private static EdgeKey CreateEdgeKey(string host) 154return EdgeKey.WildcardEdgeKey; 198var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 205hosts = new[] { EdgeKey.WildcardEdgeKey }; 210var host = hosts[j]; 240var edgeKey = kvp.Key; 244var endpointKey = endpointKeys[j]; 272private static EdgeKey[]? GetEdgeKeys(Endpoint endpoint) 274List<EdgeKey>? result = null; 293var ordered = new (EdgeKey host, int destination)[edges.Count]; 297ordered[i] = (host: (EdgeKey)e.State, destination: e.Destination); 304private static int GetScore(in EdgeKey key) 367private readonly (EdgeKey host, int destination)[] _destinations; 370public HostPolicyJumpTable(int exitDestination, (EdgeKey host, int destination)[] destinations) 398private readonly struct EdgeKey : IEquatable<EdgeKey>, IComparable<EdgeKey>, IComparable 400internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null); 424public int CompareTo(EdgeKey other) 437return CompareTo((EdgeKey)obj!); 440public bool Equals(EdgeKey other) 469if (obj is EdgeKey key)