浏览代码

modify rabbitmq queue to use no exclusive.

master
yangxiaodong 7 年前
父节点
当前提交
4aa25520e1
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. +0
    -1
      src/DotNetCore.CAP.Kafka/IProcessor.KafkaJobProcessor.cs
  2. +1
    -1
      src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs

+ 0
- 1
src/DotNetCore.CAP.Kafka/IProcessor.KafkaJobProcessor.cs 查看文件

@@ -100,7 +100,6 @@ namespace DotNetCore.CAP.Kafka

message.StatusName = StatusName.Succeeded;
await messageStore.UpdateSentMessageAsync(message);

_logger.JobExecuted(sp.Elapsed.TotalSeconds);
}
catch (Exception ex)


+ 1
- 1
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs 查看文件

@@ -45,7 +45,7 @@ namespace DotNetCore.CAP.RabbitMQ
_connection = _connectionFactory.CreateConnection();
_channel = _connection.CreateModel();
_channel.ExchangeDeclare(exchange: _exchageName, type: _rabbitMQOptions.EXCHANGE_TYPE);
_channel.QueueDeclare(_queueName);
_channel.QueueDeclare(_queueName, exclusive: false);
}

public void Listening(TimeSpan timeout)


正在加载...
取消
保存