Skip to content

Commit 7c6b062

Browse files
More assertions for #764
1 parent 7dba7ce commit 7c6b062

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,15 @@ public IProtocol Protocol
180180
public System.Net.Sockets.AddressFamily AddressFamily { get; set; } = ConnectionFactory.DefaultAddressFamily;
181181

182182
/// <summary>
183-
/// Retrieve the SSL options for this AmqpTcpEndpoint. If not set, null is returned.
183+
/// Retrieve the TLS options for this AmqpTcpEndpoint. If not set, null is returned.
184184
/// </summary>
185185
public SslOption Ssl { get; set; }
186186

187+
public SslOption Tls {
188+
get { return this.Ssl; }
189+
set { this.Ssl = value; }
190+
}
191+
187192
/// <summary>
188193
/// Construct an instance from a protocol and an address in "hostname:port" format.
189194
/// </summary>

projects/client/Unit/src/unit/TestAmqpUri.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ private static void AssertUriPartEquivalence(ConnectionFactory cf, string user,
167167
Assert.AreEqual(port, cf.Port);
168168
Assert.AreEqual(vhost, cf.VirtualHost);
169169
Assert.AreEqual(tlsEnabled, cf.Tls.Enabled);
170+
171+
Assert.AreEqual(port, cf.Endpoint.Port);
172+
Assert.AreEqual(tlsEnabled, cf.Endpoint.Tls.Enabled);
170173
}
171174

172175
private void ParseFailWith<T>(string uri) where T : Exception

0 commit comments

Comments
 (0)