Skip to content

Commit 6ab0b7e

Browse files
author
Marek Majkowski
committed
bug24131 merged into default
2 parents 8571076 + 23cee4f commit 6ab0b7e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

projects/wcf/RabbitMQ.ServiceModel/src/serviceModel/RabbitMQBinding.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ public RabbitMQBinding()
7676
{ }
7777

7878
/// <summary>
79-
/// Uses the default protocol and the broker specified by the given
80-
/// Uri.
79+
/// Uses the broker specified by the given hostname and port with
80+
/// Protocols.DefaultProtocol.
8181
/// </summary>
82-
/// <param name="broker">The address of the broker to connect to</param>
82+
/// <param name="hostname">The hostname of the broker to connect to</param>
83+
/// <param name="port">The port of the broker to connect to</param>
8384
public RabbitMQBinding(String hostname, int port)
8485
: this(hostname, port, Protocols.DefaultProtocol)
8586
{ }

projects/wcf/RabbitMQ.ServiceModel/src/serviceModel/RabbitMQTransportBindingElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ internal ConnectionFactory ConnectionFactory
256256
{
257257
connFactory.HostName = HostName;
258258
}
259-
if (Port != null)
259+
if (Port != AmqpTcpEndpoint.UseDefaultPort)
260260
{
261261
connFactory.Port = Port;
262262
}

0 commit comments

Comments
 (0)