【问题标题】:How to send a message to Azure service bus queue from a Azure mobile services script如何从 Azure 移动服务脚本向 Azure 服务总线队列发送消息
【发布时间】:2013-03-19 05:47:45
【问题描述】:

我正在尝试在 Azure 上制作一个混合应用程序,它同时使用移动服务和辅助角色。在移动服务数据库上运行的脚本(Node.js)中,我想通过服务总线队列发送消息。然后我的工作角色将收到该消息并执行一些操作。但我找不到应该如何将消息发送到服务总线队列。 顺便说一句,“Mobile Services server script reference”中没有提到这一点。有没有可能? 谢谢。

【问题讨论】:

    标签: node.js azure windows-phone-8 azureservicebus azure-mobile-services


    【解决方案1】:

    这是可能的。从您的移动服务脚本中,您可以使用 Azure 模块与服务总线通信。您可以在此处找到 Azure 模块的参考和源代码:https://github.com/WindowsAzure/azure-sdk-for-node。有关使用 Azure 模块的示例(在这种情况下与 Blob 存储通信,但它是有用的代码),请查看此演练:https://www.windowsazure.com/en-us/develop/mobile/tutorials/upload-images-to-storage-dotnet/

    【讨论】:

    • 非常感谢克里斯。这正是我需要的东西:)
    猜你喜欢
    • 1970-01-01
    • 2012-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-07
    • 2017-07-28
    • 2022-12-19
    • 2014-11-03
    相关资源
    最近更新 更多