File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
projects/client/RabbitMQ.Client/src/client/api Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -310,11 +310,27 @@ public AuthMechanismFactory AuthMechanismFactory(IList<string> mechanismNames)
310
310
/// <summary>
311
311
/// Create a connection to the specified endpoint.
312
312
/// </summary>
313
+ /// <exception cref="BrokerUnreachableException">
314
+ /// When the configured hostname was not reachable.
315
+ /// </exception>
313
316
public virtual IConnection CreateConnection ( )
314
317
{
315
318
return CreateConnection ( new List < string > ( ) { HostName } ) ;
316
319
}
317
320
321
+ /// <summary>
322
+ /// Create a connection using a list of hostnames. The first reachable
323
+ /// hostname will be used initially. Subsequent hostname picks are determined
324
+ /// by the <see cref="IHostnameSelector" /> configured.
325
+ /// </summary>
326
+ /// <param name="hostnames">
327
+ /// List of hostnames to use for the initial
328
+ /// connection and recovery.
329
+ /// </param>
330
+ /// <returns>Open connection</returns>
331
+ /// <exception cref="BrokerUnreachableException">
332
+ /// When no hostname was reachable.
333
+ /// </exception>
318
334
public IConnection CreateConnection ( IList < string > hostnames )
319
335
{
320
336
IConnection conn ;
You can’t perform that action at this time.
0 commit comments