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()

View File

@@ -1,6 +1,7 @@
using System.Text;
using System.Text.Json;
using AipsCore.Application.Abstract;
using AipsCore.Application.Abstract.MessageBroking;
using RabbitMQ.Client;
namespace AipsCore.Infrastructure.MessageBroking.RabbitMQ;