.net core MassTransit多个消费者都在不同的名称空间中收到相同的消息?
发布者通过consolePublisher1命名空间中的PublishindPoint发送消息.net core MassTransit多个消费者都在不同的名称空间中收到相同的消息?,.net-core,masstransit,.net Core,Masstransit,发布者通过consolePublisher1命名空间中的PublishindPoint发送消息 Environment: Three Projects (one publisher and three subscribers): consoleConsumer1 consoleConsumer2 consolePublisher1 但它只创建一个扇出交换,名为: consoleConsumer1:ManagerChangedIntegrationEventHandler a
Environment:
Three Projects (one publisher and three subscribers):
consoleConsumer1
consoleConsumer2
consolePublisher1
但它只创建一个扇出交换,名为:
consoleConsumer1:ManagerChangedIntegrationEventHandler
and
consoleConsumer2:ManagerChangedIntegrationEventHandler
这两个消费者竞相消费消息。我知道我可以创建队列端点,这样exchange就可以将消息发布到两个不同的队列中,但有没有办法按照约定实现这一点
为什么项目名称或命名空间不应该影响exchange和队列名称
在消费者注册中使用名称空间的最佳方式是什么?已经为此创建了名称空间,使用任何端点名称格式化程序包含名称空间的功能将在下一版本中提供。非常感谢现在的最佳方式是什么?什么是干净的方式?现在?您可以在该提交中复制代码,以便在项目中拥有自己的端点名称格式化程序。再次感谢您,在twitch live Codeing中看到最佳模式和实践将是一件好事
mt.AddConsumer<ManagerChangedIntegrationEventHandler>();
consoleConsumer1:ManagerChangedIntegrationEventHandler
and
consoleConsumer2:ManagerChangedIntegrationEventHandler
ManagerChangedIntegrationEventHandler