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