首页 > 解决方案 > 无法在 Azure 消息服务中使用自定义 ApplicationProperties 发送消息

问题描述

我正在尝试使用自定义应用程序属性在 Azure.Messaging.ServiceBus, Version=7.1.2.0 中发送消息

msg.ApplicationProperties.Add("Client","clientID");
msg.ApplicationProperties.Add("NotificationType", "type");
sender.SendMessageAsync(msg)

这是行不通的。

但下面的代码工作正常

msg.ApplicationProperties.Add("ClientCD",clientID);
msg.ApplicationProperties.Add("NotificationTypeCD", "type");
sender.SendMessageAsync(msg));

在这里,我将 NotificationType 更改为 NotificationTypeCD 及其工作。

我的问题是我想使用“NotificationType”。请帮助,提前谢谢。

标签: azureazureservicebusazure-sdk-.net

解决方案


推荐阅读