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