Skip to content

Commit 853ce08

Browse files
author
Alexandru Scvortov
committed
rollback int? change
1 parent 8515788 commit 853ce08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/client/RabbitMQ.Client/src/client/api/AmqpTcpEndpoint.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ public string HostName
9393
set { m_hostName = value; }
9494
}
9595

96-
private int? m_port;
96+
private int m_port;
9797
///<summary>Retrieve or set the port number of this
9898
///AmqpTcpEndpoint. A port number of -1 causes the default
9999
///port number for the IProtocol to be used.</summary>
100100
public int Port
101101
{
102102
get {
103-
if (m_port.HasValue)
104-
return m_port.Value;
103+
if (m_port != UseDefaultPort)
104+
return m_port;
105105
if (m_ssl.Enabled)
106106
return DefaultAmqpSslPort;
107107
return m_protocol.DefaultPort;

0 commit comments

Comments
 (0)