简体   繁体   English

Azure 服务总线和公共交通,相同的消息,不同的命名空间

[英]Azure service bus and masstransit, same message, different namespace

i'm using Azure service bus with masstransit it works perfectly if the message class type is inherited from the same project, but once the message is sent from another .net projet, so different namespace in "messageType" property, it goes automatically to deadletter and my consumer is unable to catch it, what is the solution in this case? i'm using Azure service bus with masstransit it works perfectly if the message class type is inherited from the same project, but once the message is sent from another .net projet, so different namespace in "messageType" property, it goes automatically to deadletter and我的消费者无法捕捉到它,这种情况下的解决方案是什么? because I cannot oblige different publishers (differents teams) to put the same namespace for that message type class thank you因为我不能要求不同的发布者(不同的团队)为该消息类型 class 放置相同的命名空间,谢谢

From the documentation :文档中:

Important重要的

MassTransit uses the full type name, including the namespace, for message contracts. MassTransit 使用完整的类型名称,包括命名空间,用于消息契约。 When creating the same message type in two separate projects, the namespaces must match or the message will not be consumed.在两个单独的项目中创建相同的消息类型时,命名空间必须匹配,否则消息将不会被消费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用大众运输向天蓝色服务总线主题中的特定订户组发送消息 - Sending message to a specific group of subscriber in azure service bus topic with masstransit Azure Service Bus上的MassTransit抛出MessageSizeExceededException - MassTransit on Azure Service Bus throws MessageSizeExceededException 使用Azure Service Bus创建队列的MassTransit 3 - MassTransit 3 with Azure Service Bus creating queues Azure 服务总线性能问题 MassTransit - Azure Service Bus performance issue MassTransit MassTransit Azure 服务总线日志级别 - MassTransit Azure Service Bus log level Azure Service Bus 和 MassTransit iConsumer 业务逻辑 - Azure Service Bus and MassTransit iConsumer business logic 在不同的Azure服务总线队列中使用相同的消息ID导致错误 - Using the same message id in different Azure service bus queues causing errors 同一消息的多个订阅者 Rebus Azure 服务总线 - Multiple Subscribers to same message Rebus Azure Service Bus 同一服务总线队列消息多次运行的Azure函数 - Azure function running multiple times for the same service bus queue message 使用不同的接收器实例查看和完成消息 - Azure 服务总线 - Peek and Complete Message using different Receiver Instances - Azure Service Bus
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM