我正在尝试在具有2个总线实例(相同过程)的单元测试中使用InMemoryBus传输。总线实例之一应发布一个事件,另一个实例将其使用。
我认为,这里http://masstransit-project.com/MassTransit/usage/transports.html中记录了共享传输功能,但是在5.2.1版中似乎不再可用。还有另一种方法可以达到相同的结果吗?
答案 0 :(得分:0)
Multiple bus instances with a shared in-memory transport are no longer supported. You can use a single bus instance with multiple receive endpoints if you need to test multiple consumers in the same process.
I'm guessing that you're upgrading from a much older version of MT, since that ability was removed quite some time ago.