diff --git a/src/NServiceBus.Transport.RabbitMQ.CommandLine/BrokerConnectionBinder.cs b/src/NServiceBus.Transport.RabbitMQ.CommandLine/BrokerConnectionBinder.cs index 9565339fe..4b98b4c82 100644 --- a/src/NServiceBus.Transport.RabbitMQ.CommandLine/BrokerConnectionBinder.cs +++ b/src/NServiceBus.Transport.RabbitMQ.CommandLine/BrokerConnectionBinder.cs @@ -36,13 +36,13 @@ protected override BrokerConnection GetBoundValue(BindingContext bindingContext) certificateCollection.Add(certificate); } - var connectionFactory = new ConnectionFactory("rabbitmq-transport", connectionConfiguration, certificateCollection, disableCertificateValidation, useExternalAuth, TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(10), new List<(string, int, bool)>()); + var connectionFactory = new ConnectionFactory("rabbitmq-transport", connectionConfiguration, certificateCollection, disableCertificateValidation, useExternalAuth, TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(10), []); var brokerConnection = new BrokerConnection(connectionFactory); return brokerConnection; } - string GetConnectionString(string? connectionString, string? connectionStringEnv) + static string GetConnectionString(string? connectionString, string? connectionStringEnv) { if (string.IsNullOrWhiteSpace(connectionString)) {