NServiceBus DoNotContinueDispatchingCurrentMessageToHandlers永远重试

时间:2014-08-27 09:26:05

标签: nservicebus

使用NServiceBus 4.6.1并且当我调用Bus.DoNotContinueDispatchingCurrentMessageToHandlers()时;消息以超时的方式进入相应的ravenDB数据库,因此1分钟后消息会一次又一次地重试。

这个函数不应该只重试app.config中的次数,然后将它移到错误队列中吗?

由于

1 个答案:

答案 0 :(得分:0)

实际上我在调用Bus.DoNotContinueDispatchingCurrentMessageToHandlers()之前用1分钟调用Bus.Defer。

这就是原因。