NServiceBus:bus.Defer() 和 bus.DoNotContinueDispatchingCurrentMessageToHandlers()

NServiceBus: bus.Defer() and bus.DoNotContinueDispatchingCurrentMessageToHandlers()

抱歉,这是一个由两部分组成的问题。

第 1 部分 将 bus.Defer() 与 NServiceBus 一起使用时,"deferred" 消息存储在哪里?回到延迟它们的处理程序的队列中(类似于bus.SendLocal()),还是使用RavenDB存储延迟消息?

第 2 部分 使用 bus.DoNotContinueDispatchingCurrentMessageToHandlers() 时,消息会发生什么变化?消息是否被丢弃在地板上、移至审核队列等...

???

谢谢! 麦克

When using bus.Defer() with NServiceBus, where are the "deferred" messages stored?

延迟消息存储在您选择的已配置持久性中,有关详细信息,请参阅http://docs.particular.net/nservicebus/persistence/

When using bus.DoNotContinueDispatchingCurrentMessageToHandlers(), what happens to the message?

假设您正在从一个处理程序中调用 bus.DoNotContinueDispatchingCurrentMessageToHandlers(),消息仍然以与以前完全相同的方式处理,唯一的区别是 NServiceBus 不会再为该消息执行任何处理程序,所以本质上,消息一直被处理到这一点。如果审计开启,消息将被审计。


如果您有任何其他问题,请随时在我们的论坛中提问 https://groups.google.com/forum/#!forum/particularsoftware