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