40
40
41
41
using System ;
42
42
using System . Collections . Generic ;
43
+ using System . Security . Authentication ;
43
44
using System . Text . RegularExpressions ;
44
45
45
46
namespace RabbitMQ . Client
@@ -62,6 +63,7 @@ public class AmqpTcpEndpoint// : ICloneable
62
63
/// </summary>
63
64
public const int DefaultAmqpSslPort = 5671 ;
64
65
66
+
65
67
/// <summary>
66
68
/// Indicates that the default port for the protocol should be used.
67
69
/// </summary>
@@ -138,6 +140,11 @@ public AmqpTcpEndpoint CloneWithHostname(string hostname)
138
140
return new AmqpTcpEndpoint ( hostname , _port , Ssl ) ;
139
141
}
140
142
143
+ /// <summary>
144
+ /// The default Amqp SSL protocols.
145
+ /// </summary>
146
+ public static SslProtocols DefaultAmqpSslProtocols { get ; set ; } = SslProtocols . Tls | SslProtocols . Tls11 | SslProtocols . Tls12 ;
147
+
141
148
/// <summary>
142
149
/// Retrieve or set the hostname of this <see cref="AmqpTcpEndpoint"/>.
143
150
/// </summary>
@@ -174,7 +181,7 @@ public IProtocol Protocol
174
181
/// <summary>
175
182
/// Used to force the address family of the endpoint
176
183
/// </summary>
177
- public System . Net . Sockets . AddressFamily AddressFamily { get ; set ; }
184
+ public System . Net . Sockets . AddressFamily AddressFamily { get ; set ; }
178
185
179
186
/// <summary>
180
187
/// Retrieve the SSL options for this AmqpTcpEndpoint. If not set, null is returned.
@@ -228,7 +235,7 @@ public static AmqpTcpEndpoint Parse(string address)
228
235
/// </remarks>
229
236
public static AmqpTcpEndpoint [ ] ParseMultiple ( string addresses )
230
237
{
231
- string [ ] partsArr = addresses . Split ( new [ ] { ',' } ) ;
238
+ string [ ] partsArr = addresses . Split ( new [ ] { ',' } ) ;
232
239
var results = new List < AmqpTcpEndpoint > ( ) ;
233
240
foreach ( string partRaw in partsArr )
234
241
{
0 commit comments