之前,我使用azure-sb
包来处理 NodeJS 中的服务总线消息,示例代码如下:
let message = {
body: JSON.stringify(body),
customProperties: {
userId: userId
}
};
但是,在更改为使用 package 后@azure/service-bus
,我需要进行一些更改以获取 C# 代码中的正文,如下所示:
let signMessage = {
body: body,
customProperties: { // tried to use userProperties but not okay
userId: userId
}
};
但是,我仍然无法userProperties
在 C# 或 ServiceBus Explorer 中成功。