1 write to Host
Microsoft.AspNetCore.Routing (1)
Matching\HostMatcherPolicy.cs (1)
409
Host
= host ?? WildcardHost;
11 references to Host
Microsoft.AspNetCore.Routing (11)
Matching\HostMatcherPolicy.cs (11)
252
edgeKey.Port == endpointKey.Port && edgeKey.MatchHost(endpointKey.
Host
))
412
HasHostWildcard =
Host
.StartsWith(WildcardPrefix, StringComparison.Ordinal);
413
_wildcardEndsWith = HasHostWildcard ?
Host
.Substring(1) : null;
418
public bool MatchesHost => !string.Equals(
Host
, WildcardHost, StringComparison.Ordinal);
426
var result = Comparer<string>.Default.Compare(
Host
, other.
Host
);
442
return string.Equals(
Host
, other.
Host
, StringComparison.Ordinal) && Port == other.Port;
455
return string.Equals(host,
Host
, StringComparison.OrdinalIgnoreCase);
464
return (
Host
?.GetHashCode() ?? 0) ^ (Port?.GetHashCode() ?? 0);
479
return $"{
Host
}:{Port?.ToString(CultureInfo.InvariantCulture) ?? WildcardHost}";