azure - 无法在 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”。请帮助,提前谢谢。
解决方案
推荐阅读
- mysql - 在 MySQL 表的 Default/Expression 中使用 case 表达式
- typescript - 如何在构造函数中设置未知的打字稿成员变量
- apache-spark - 为什么使用 sql 表达式进行过滤比在 Spark 中的 DataSet 中应用的函数更好
- database - laravel - 在一个表中插入,在另一个表中更新
- python - Pandas:从列内的值创建虚拟变量
- ruby-on-rails - 如何在 google app engine flex 实例上查找可用内存
- powershell - 从 Ironport 下载文件
- math - 在“密码”中,Marcus du Sautoy 试图解释混沌理论
- android - 如何检查android应用程序是否有权使用蜂窝互联网?
- excel - 从 ORACLE PLSQL、XLSX_BUILDER_PKG 制作 EXCEL - EXCEL 无法识别文件