【发布时间】:2017-07-12 04:16:22
【问题描述】:
有没有办法从 javascript azure 函数中检索服务总线代理消息。 目前只有一个包含 invocationId 的上下文,而不是所有属性,如 brokeredProperties 或 customPropeties。
谢谢
【问题讨论】:
标签: node.js azureservicebus azure-functions
有没有办法从 javascript azure 函数中检索服务总线代理消息。 目前只有一个包含 invocationId 的上下文,而不是所有属性,如 brokeredProperties 或 customPropeties。
谢谢
【问题讨论】:
标签: node.js azureservicebus azure-functions
目前,context.bindingData.properties 对象中提供了所有服务总线自定义属性。
就我而言:
properties:
{
type: 'sometype', // <- this is the property I have set manually in IoT Device-to-Cloud message
'iothub-connection-device-id': 'mydeviceid',
'iothub-connection-auth-method': '{"scope":"somescope","type":"sometype","issuer":"external","acceptingIpFilterRule":null}',
'iothub-connection-auth-generation-id': 'someid' // <- These are added by IoT Hub
}
【讨论】:
目前无法从节点函数中执行此操作。您必须使用 C# 并指定 BrokeredMessage 作为参数类型,在这种情况下,您将获得整个消息来自己处理。
提交了一个问题以公开服务总线(和事件中心)触发器的更多详细信息:https://github.com/Azure/azure-webjobs-sdk/issues/1004。我添加了指向此问题的链接,以便我们确保在解决问题时考虑到您的情况。
【讨论】: