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 41
41
using System ;
42
42
using System . Collections . Generic ;
43
43
using System . Threading . Tasks ;
44
+ using RabbitMQ . Client . Exceptions ;
44
45
45
46
namespace RabbitMQ . Client
46
47
{
@@ -135,6 +136,21 @@ public interface IConnectionFactory
135
136
/// <returns></returns>
136
137
IConnection CreateConnection ( IList < string > hostnames , String clientProvidedName ) ;
137
138
139
+ /// <summary>
140
+ /// Create a connection using a list of endpoints. By default each endpoint will be tried
141
+ /// in a random order until a successful connection is found or the list is exhausted.
142
+ /// The selection behaviour can be overriden by configuring the EndpointResolverFactory.
143
+ /// </summary>
144
+ /// <param name="endpoints">
145
+ /// List of endpoints to use for the initial
146
+ /// connection and recovery.
147
+ /// </param>
148
+ /// <returns>Open connection</returns>
149
+ /// <exception cref="BrokerUnreachableException">
150
+ /// When no hostname was reachable.
151
+ /// </exception>
152
+ IConnection CreateConnection ( IList < AmqpTcpEndpoint > endpoints ) ;
153
+
138
154
/// <summary>
139
155
/// Advanced option.
140
156
///
You can’t perform that action at this time.
0 commit comments