Skip to content

Commit

Permalink
Always call VerifyRequirements on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Feb 5, 2025
1 parent 60e705b commit 42dbd2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/NServiceBus.Transport.RabbitMQ/RabbitMQTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public override async Task<TransportInfrastructure> Initialize(HostSettings host

var brokerVerifier = new BrokerVerifier(ManagementClient, ValidateDeliveryLimits);
await brokerVerifier.Initialize(cancellationToken).ConfigureAwait(false);
await brokerVerifier.VerifyRequirements(cancellationToken).ConfigureAwait(false);

var channelProvider = new ChannelProvider(connectionFactory, NetworkRecoveryInterval, RoutingTopology);
await channelProvider.CreateConnection(cancellationToken).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ internal async Task SetupInfrastructure(string[] sendingQueues, CancellationToke
{
using var connection = await connectionFactory.CreateAdministrationConnection(cancellationToken).ConfigureAwait(false);

await brokerVerifier.VerifyRequirements(cancellationToken).ConfigureAwait(false);

using var channel = await connection.CreateChannelAsync(cancellationToken: cancellationToken).ConfigureAwait(false);

if (supportsDelayedDelivery)
Expand Down

0 comments on commit 42dbd2c

Please sign in to comment.