File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
projects/client/RabbitMQ.Client/src/client/api Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ namespace RabbitMQ.Client
7474 public class AmqpTcpEndpoint
7575 {
7676 ///<summary>Indicates that the default port for the protocol should be used</summary>
77- public const int DefaultAMQPSSLPort = 5671 ;
77+ public const int DefaultAmqpSslPort = 5671 ;
7878 public const int UseDefaultPort = - 1 ;
7979
8080 private IProtocol m_protocol ;
@@ -93,17 +93,17 @@ 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 != UseDefaultPort )
104- return m_port ;
103+ if ( m_port . HasValue )
104+ return m_port . Value ;
105105 if ( m_ssl . Enabled )
106- return DefaultAMQPSSLPort ;
106+ return DefaultAmqpSslPort ;
107107 return m_protocol . DefaultPort ;
108108 }
109109 set { m_port = value ; }
You can’t perform that action at this time.
0 commit comments