61
61
namespace RabbitMQ . Client
62
62
{
63
63
///<summary>Represents a TCP-addressable AMQP peer, including the
64
- ///protocol variant to use, and a host name and port
65
- ///number.</summary>
64
+ /// a host name and port number. Where the default protocol port
65
+ /// should be used, this is represented by a port number of -1
66
+ /// </summary>
66
67
///<para>
67
68
/// Some of the constructors take, as a convenience, a System.Uri
68
69
/// instance representing an AMQP server address. The use of Uri
@@ -109,8 +110,7 @@ public SslOption Ssl
109
110
110
111
///<summary>Construct an AmqpTcpEndpoint with the given
111
112
///hostname, port number and ssl option. If the port
112
- ///number is -1, the default port number for the IProtocol
113
- ///will be used.</summary>
113
+ ///number is -1 </summary>
114
114
public AmqpTcpEndpoint ( string hostName , int portOrMinusOne , SslOption ssl )
115
115
{
116
116
m_hostName = hostName ;
@@ -119,17 +119,14 @@ public AmqpTcpEndpoint(string hostName, int portOrMinusOne, SslOption ssl)
119
119
}
120
120
121
121
///<summary>Construct an AmqpTcpEndpoint with the given
122
- /// hostname, and port number. If the port number is
123
- ///-1, the default port number for the IProtocol will be
124
- ///used.</summary>
122
+ /// hostname, and port number. </summary>
125
123
public AmqpTcpEndpoint ( string hostName , int portOrMinusOne ) :
126
124
this ( hostName , portOrMinusOne , new SslOption ( ) )
127
125
{
128
126
}
129
127
130
128
///<summary>Construct an AmqpTcpEndpoint with the given
131
- ///hostname, using the default port for the
132
- ///IProtocol.</summary>
129
+ ///hostname, using the default port </summary>
133
130
public AmqpTcpEndpoint ( string hostName ) :
134
131
this ( hostName , - 1 )
135
132
{
@@ -143,7 +140,7 @@ public AmqpTcpEndpoint() :
143
140
}
144
141
145
142
///<summary>Construct an AmqpTcpEndpoint with the given
146
- ///IProtocol, Uri and ssl options.</summary>
143
+ /// Uri and ssl options.</summary>
147
144
///<remarks>
148
145
/// Please see the class overview documentation for
149
146
/// information about the Uri format in use.
@@ -174,8 +171,8 @@ public override string ToString()
174
171
return "amqp://" + HostName + ":" + Port ;
175
172
}
176
173
177
- ///<summary>Compares this instance by value (protocol,
178
- ///hostname, port) against another instance</summary>
174
+ ///<summary>Compares this instance by value (hostname, port)
175
+ ///against another instance</summary>
179
176
public override bool Equals ( object obj )
180
177
{
181
178
AmqpTcpEndpoint other = obj as AmqpTcpEndpoint ;
@@ -201,8 +198,7 @@ public override int GetHashCode()
201
198
/// If the address string passed in contains ":", it is split
202
199
/// into a hostname and a port-number part. Otherwise, the
203
200
/// entire string is used as the hostname, and the port-number
204
- /// is set to -1 (meaning the default number for the protocol
205
- /// variant specified).
201
+ /// is set to the default.
206
202
///</remarks>
207
203
public static AmqpTcpEndpoint Parse ( string address ) {
208
204
int index = address . IndexOf ( ':' ) ;
0 commit comments