Skip to content

Commit 59919d3

Browse files
Merge pull request #316 from rabbitmq/rabbitmq-dotnet-client-312
Add SetUri to IConnectionFactory interface
2 parents 353515c + 7c6c259 commit 59919d3

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -271,25 +271,6 @@ public AmqpTcpEndpoint Endpoint
271271
}
272272
}
273273

274-
275-
/// <summary>
276-
/// Set connection parameters using the amqp or amqps scheme.
277-
/// </summary>
278-
[Obsolete("Deprecated: please use SetUri instead.")]
279-
public String Uri
280-
{
281-
set { SetUri(new Uri(value, UriKind.Absolute)); }
282-
}
283-
284-
/// <summary>
285-
/// Set connection parameters using the amqp or amqps scheme.
286-
/// </summary>
287-
[Obsolete("Deprecated: please use SetUri instead.")]
288-
public Uri uri
289-
{
290-
set { SetUri(value); }
291-
}
292-
293274
/// <summary>
294275
/// Dictionary of client properties to be sent to the server.
295276
/// </summary>

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ public interface IConnectionFactory
8686
/// </summary>
8787
string VirtualHost { get; set; }
8888

89+
90+
91+
/// <summary>
92+
/// Sets the AMQP Uri to be used for connections.
93+
/// </summary>
94+
void SetUri(Uri uri);
95+
8996
/// <summary>
9097
/// Given a list of mechanism names supported by the server, select a preferred mechanism,
9198
/// or null if we have none in common.

0 commit comments

Comments
 (0)