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
74
74
public class AmqpTcpEndpoint
75
75
{
76
76
///<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 ;
78
78
public const int UseDefaultPort = - 1 ;
79
79
80
80
private IProtocol m_protocol ;
@@ -93,17 +93,17 @@ public string HostName
93
93
set { m_hostName = value ; }
94
94
}
95
95
96
- private int m_port ;
96
+ private int ? m_port ;
97
97
///<summary>Retrieve or set the port number of this
98
98
///AmqpTcpEndpoint. A port number of -1 causes the default
99
99
///port number for the IProtocol to be used.</summary>
100
100
public int Port
101
101
{
102
102
get {
103
- if ( m_port != UseDefaultPort )
104
- return m_port ;
103
+ if ( m_port . HasValue )
104
+ return m_port . Value ;
105
105
if ( m_ssl . Enabled )
106
- return DefaultAMQPSSLPort ;
106
+ return DefaultAmqpSslPort ;
107
107
return m_protocol . DefaultPort ;
108
108
}
109
109
set { m_port = value ; }
You can’t perform that action at this time.
0 commit comments