Skip to content

Commit

Permalink
Use collection initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
abparticular committed Nov 25, 2024
1 parent 7089d4a commit 1b0626e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 1b0626e

Please sign in to comment.