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