diff --git a/src/NServiceBus.Transport.RabbitMQ/RabbitMQTransport.cs b/src/NServiceBus.Transport.RabbitMQ/RabbitMQTransport.cs
index 4a995a361..4c2b1d16e 100644
--- a/src/NServiceBus.Transport.RabbitMQ/RabbitMQTransport.cs
+++ b/src/NServiceBus.Transport.RabbitMQ/RabbitMQTransport.cs
@@ -25,13 +25,23 @@ public class RabbitMQTransport : TransportDefinition
readonly List<(string hostName, int port, bool useTls)> additionalClusterNodes = [];
+ ///
+ /// Creates a new instance of the RabbitMQ transport.
+ ///
+ /// The routing topology to use.
+ /// The connection string to use when connecting to the broker.
+ public RabbitMQTransport(RoutingTopology routingTopology, string connectionString)
+ : this(routingTopology, connectionString, null)
+ {
+ }
+
///
/// Creates a new instance of the RabbitMQ transport.
///
/// The routing topology to use.
/// The connection string to use when connecting to the broker.
/// The connection string to use when connecting to the management API
- public RabbitMQTransport(RoutingTopology routingTopology, string connectionString, string managementConnectionString = null)
+ public RabbitMQTransport(RoutingTopology routingTopology, string connectionString, string managementConnectionString)
: base(TransportTransactionMode.ReceiveOnly,
supportsDelayedDelivery: true,
supportsPublishSubscribe: true,
@@ -53,9 +63,20 @@ public RabbitMQTransport(RoutingTopology routingTopology, string connectionStrin
///
/// The routing topology to use.
/// The connection string to use when connecting to the broker.
- /// The connection string to use when connecting to the management API
/// Should the delayed delivery infrastructure be created by the endpoint
- public RabbitMQTransport(RoutingTopology routingTopology, string connectionString, bool enableDelayedDelivery, string managementConnectionString = null)
+ public RabbitMQTransport(RoutingTopology routingTopology, string connectionString, bool enableDelayedDelivery)
+ : this(routingTopology, connectionString, enableDelayedDelivery, null)
+ {
+ }
+
+ ///
+ /// Creates a new instance of the RabbitMQ transport.
+ ///
+ /// The routing topology to use.
+ /// The connection string to use when connecting to the broker.
+ /// Should the delayed delivery infrastructure be created by the endpoint
+ /// The connection string to use when connecting to the management API
+ public RabbitMQTransport(RoutingTopology routingTopology, string connectionString, bool enableDelayedDelivery, string managementConnectionString)
: base(TransportTransactionMode.ReceiveOnly,
supportsDelayedDelivery: enableDelayedDelivery,
supportsPublishSubscribe: true,