gpt4 book ai didi

c# - 如何使用 Azure.Messaging.ServiceBus 库添加自定义属性?

转载 作者:行者123 更新时间:2023-12-04 16:38:24 24 4
gpt4 key购买 nike

最新sdk (Azure.Messaging.ServiceBus 7.0.1)似乎没有选项将自定义(用户)属性添加到消息(即:用于过滤主题子)。现在有人知道如何做到这一点吗? SendMessageAsync

最佳答案

已替换为 ServiceBusMessage.ApplicationProperties :

In v7, the userProperties and label on the message were renamed to applicationProperties and subject to be in sync with the AMQP spec. We did this across languages as part of our new SDKs.

We realize that we should have done a better job at communicating thisin our migration guide which is linked from the readme for the packagein npm and github as well as from our changelog. We will do soimmediately.

https://github.com/Azure/azure-sdk-for-js/issues/12861#issuecomment-743406738

关于c# - 如何使用 Azure.Messaging.ServiceBus 库添加自定义属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65876086/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com