Commit 4aa25520 authored by yangxiaodong's avatar yangxiaodong

modify rabbitmq queue to use no exclusive.

parent 83064c25
...@@ -100,7 +100,6 @@ namespace DotNetCore.CAP.Kafka ...@@ -100,7 +100,6 @@ namespace DotNetCore.CAP.Kafka
message.StatusName = StatusName.Succeeded; message.StatusName = StatusName.Succeeded;
await messageStore.UpdateSentMessageAsync(message); await messageStore.UpdateSentMessageAsync(message);
_logger.JobExecuted(sp.Elapsed.TotalSeconds); _logger.JobExecuted(sp.Elapsed.TotalSeconds);
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.RabbitMQ ...@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.RabbitMQ
_connection = _connectionFactory.CreateConnection(); _connection = _connectionFactory.CreateConnection();
_channel = _connection.CreateModel(); _channel = _connection.CreateModel();
_channel.ExchangeDeclare(exchange: _exchageName, type: _rabbitMQOptions.EXCHANGE_TYPE); _channel.ExchangeDeclare(exchange: _exchageName, type: _rabbitMQOptions.EXCHANGE_TYPE);
_channel.QueueDeclare(_queueName); _channel.QueueDeclare(_queueName, exclusive: false);
} }
public void Listening(TimeSpan timeout) public void Listening(TimeSpan timeout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment