1 write to Port
Microsoft.AspNetCore.Routing (1)
Matching\HostMatcherPolicy.cs (1)
410Port = port;
10 references to Port
Microsoft.AspNetCore.Routing (10)
Matching\HostMatcherPolicy.cs (10)
252edgeKey.Port == endpointKey.Port && edgeKey.MatchHost(endpointKey.Host)) 387if ((!destination.host.MatchesPort || destination.host.Port == port) && 420public bool MatchesPort => Port != null; 432return Comparer<int?>.Default.Compare(Port, other.Port); 442return string.Equals(Host, other.Host, StringComparison.Ordinal) && Port == other.Port; 464return (Host?.GetHashCode() ?? 0) ^ (Port?.GetHashCode() ?? 0); 479return $"{Host}:{Port?.ToString(CultureInfo.InvariantCulture) ?? WildcardHost}";