diff --git a/src/NServiceBus.Transport.RabbitMQ.TransportTests/NServiceBus.Transport.RabbitMQ.TransportTests.csproj b/src/NServiceBus.Transport.RabbitMQ.TransportTests/NServiceBus.Transport.RabbitMQ.TransportTests.csproj index d778a2f83..d4c9a9e4b 100644 --- a/src/NServiceBus.Transport.RabbitMQ.TransportTests/NServiceBus.Transport.RabbitMQ.TransportTests.csproj +++ b/src/NServiceBus.Transport.RabbitMQ.TransportTests/NServiceBus.Transport.RabbitMQ.TransportTests.csproj @@ -1,4 +1,4 @@ - + net8.0 @@ -22,8 +22,4 @@ - - - - diff --git a/src/NServiceBus.Transport.RabbitMQ/Configuration/ConnectionConfiguration.cs b/src/NServiceBus.Transport.RabbitMQ/Configuration/ConnectionConfiguration.cs index 3eca08219..f10f38a1c 100644 --- a/src/NServiceBus.Transport.RabbitMQ/Configuration/ConnectionConfiguration.cs +++ b/src/NServiceBus.Transport.RabbitMQ/Configuration/ConnectionConfiguration.cs @@ -6,7 +6,10 @@ using System.Linq; using System.Text; - class ConnectionConfiguration + /// + /// Configuration container for the RabbitMQ connection. + /// + public class ConnectionConfiguration { const bool defaultUseTls = false; const int defaultPort = 5672; @@ -15,16 +18,34 @@ class ConnectionConfiguration const string defaultUserName = "guest"; const string defaultPassword = "guest"; + /// + /// Gets the broker host. + /// public string Host { get; } + /// + /// Gets the port the broker uses. + /// public int Port { get; } + /// + /// Gets the virtual host. + /// public string VirtualHost { get; } + /// + /// Gets the user name used for the connection. + /// public string UserName { get; } + /// + /// Gets the password used for the connection. + /// public string Password { get; } + /// + /// Gets whether TLS should be used. + /// public bool UseTls { get; } ConnectionConfiguration( @@ -43,6 +64,11 @@ class ConnectionConfiguration UseTls = useTls; } + /// + /// Parses the connection string and returns the connection information. + /// + /// The connection string to be parsed. + /// public static ConnectionConfiguration Create(string connectionString) { Dictionary dictionary;