We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8515788 commit 853ce08Copy full SHA for 853ce08
projects/client/RabbitMQ.Client/src/client/api/AmqpTcpEndpoint.cs
@@ -93,15 +93,15 @@ public string HostName
93
set { m_hostName = value; }
94
}
95
96
- private int? m_port;
+ private int m_port;
97
///<summary>Retrieve or set the port number of this
98
///AmqpTcpEndpoint. A port number of -1 causes the default
99
///port number for the IProtocol to be used.</summary>
100
public int Port
101
{
102
get {
103
- if (m_port.HasValue)
104
- return m_port.Value;
+ if (m_port != UseDefaultPort)
+ return m_port;
105
if (m_ssl.Enabled)
106
return DefaultAmqpSslPort;
107
return m_protocol.DefaultPort;
0 commit comments