Skip to content

Commit 9bc1ed5

Browse files
committed
ConnectionFactory now implements internal IAsyncConnectionFactory
Implementing an internal interface is a non-breaking change from an API perspective
1 parent 36cac8b commit 9bc1ed5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ namespace RabbitMQ.Client
9898
///"amqp://foo/" (note the trailling slash) also represent the
9999
///default virtual host. The latter issue means that virtual
100100
///hosts with an empty name are not addressable. </para></remarks>
101-
public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
101+
public class ConnectionFactory : ConnectionFactoryBase, IAsyncConnectionFactory
102102
{
103103
/// <summary>
104104
/// Default value for the desired maximum channel number, with zero meaning unlimited (value: 0).
@@ -481,7 +481,7 @@ public IConnection CreateConnection(IEndpointResolver endpointResolver, String c
481481
throw new BrokerUnreachableException(e);
482482
}
483483

484-
return DispatchConsumersAsync ? new AsyncConnectionDecorator(conn) : conn;
484+
return conn;
485485
}
486486

487487
public IFrameHandler CreateFrameHandler()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace RabbitMQ.Client
2+
{
3+
internal interface IAsyncConnectionFactory : IConnectionFactory
4+
{
5+
bool DispatchConsumersAsync { get; set; }
6+
}
7+
}

0 commit comments

Comments
 (0)