4 instantiations of EdgeKey
Microsoft.AspNetCore.Routing (4)
Matching\HostMatcherPolicy.cs (4)
173return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 182return new EdgeKey(hostSpan[hostParts[0]].ToString(), port); 186return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 409internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null);
22 references to EdgeKey
Microsoft.AspNetCore.Routing (22)
Matching\HostMatcherPolicy.cs (22)
59var key = CreateEdgeKey(host); 159private static EdgeKey CreateEdgeKey(string host) 163return EdgeKey.WildcardEdgeKey; 207var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 214hosts = new[] { EdgeKey.WildcardEdgeKey }; 219var host = hosts[j]; 249var edgeKey = kvp.Key; 253var endpointKey = endpointKeys[j]; 281private static EdgeKey[]? GetEdgeKeys(Endpoint endpoint) 283List<EdgeKey>? result = null; 302var ordered = new (EdgeKey host, int destination)[edges.Count]; 306ordered[i] = (host: (EdgeKey)e.State, destination: e.Destination); 313private static int GetScore(in EdgeKey key) 376private readonly (EdgeKey host, int destination)[] _destinations; 379public HostPolicyJumpTable(int exitDestination, (EdgeKey host, int destination)[] destinations) 407private readonly struct EdgeKey : IEquatable<EdgeKey>, IComparable<EdgeKey>, IComparable 409internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null); 433public int CompareTo(EdgeKey other) 446return CompareTo((EdgeKey)obj!); 449public bool Equals(EdgeKey other) 487if (obj is EdgeKey key)