namespace fix

This commit is contained in:
2026-02-14 00:45:35 +01:00
parent 8ea09e6796
commit 2ea7060eef
5 changed files with 18 additions and 5 deletions

View File

@@ -18,10 +18,11 @@ public class RabbitMqConnection : IRabbitMqConnection
{
if (_connection is null)
{
throw new InvalidOperationException($"RabbitMQ connection not created for {_configuration.GetEnvRabbitMqAmqpUri()}");
await CreateConnectionAsync();
//throw new InvalidOperationException($"RabbitMQ connection not created for {_configuration.GetEnvRabbitMqAmqpUri()}");
}
return await _connection.CreateChannelAsync(null, cancellationToken);
return await _connection!.CreateChannelAsync(null, cancellationToken);
}
public async Task CreateConnectionAsync()