4 instantiations of EdgeKey
Microsoft.AspNetCore.Routing (4)
Matching\HostMatcherPolicy.cs (4)
169return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 178return new EdgeKey(hostSpan[hostParts[0]].ToString(), port); 182return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 405internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null);
22 references to EdgeKey
Microsoft.AspNetCore.Routing (22)
Matching\HostMatcherPolicy.cs (22)
59var key = CreateEdgeKey(host); 155private static EdgeKey CreateEdgeKey(string host) 159return EdgeKey.WildcardEdgeKey; 203var edges = new Dictionary<EdgeKey, List<Endpoint>>(); 210hosts = new[] { EdgeKey.WildcardEdgeKey }; 215var host = hosts[j]; 245var edgeKey = kvp.Key; 249var endpointKey = endpointKeys[j]; 277private static EdgeKey[]? GetEdgeKeys(Endpoint endpoint) 279List<EdgeKey>? result = null; 298var ordered = new (EdgeKey host, int destination)[edges.Count]; 302ordered[i] = (host: (EdgeKey)e.State, destination: e.Destination); 309private static int GetScore(in EdgeKey key) 372private readonly (EdgeKey host, int destination)[] _destinations; 375public HostPolicyJumpTable(int exitDestination, (EdgeKey host, int destination)[] destinations) 403private readonly struct EdgeKey : IEquatable<EdgeKey>, IComparable<EdgeKey>, IComparable 405internal static readonly EdgeKey WildcardEdgeKey = new EdgeKey(null, null); 429public int CompareTo(EdgeKey other) 442return CompareTo((EdgeKey)obj!); 445public bool Equals(EdgeKey other) 479if (obj is EdgeKey key)