namespace fix
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user