azure - 微软Azure功能应用程序

标签 azure azure-functions azureservicebus azure-function-app

我试图通过服务总线通过两个单独的serviceBusTrigger(来自两个不同的主题)触发功能应用程序。我尝试使用 type=serviceBusTrigger 将 2 个绑定(bind)添加到 function.json,但这不起作用。知道如何实现这一点吗?

最佳答案

Triggers are what cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers have associated data, which is often provided as the payload of the function.

您需要创建两个单独的函数,每个函数都有自己的触发器。如果它们共享通用逻辑,则创建通用函数以从两个函数中直接调用它。

关于azure - 微软Azure功能应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63890163/

相关文章:

azure - 向 Azure 队列写入监听器

postgresql - Azure 函数应用程序在 PostgreSQL pg 调用上失败

azure - 存储和事件网格之间的弹性

c# - 如何在 .NET Core 中模拟/ stub HttpRequestMessage?

azure - 从计时器触发的函数调用另一个 Azure 函数

c# - Azure Webjob 服务的 Microsoft.Azure.ServiceBus.Message 支持

python - 我可以让 Python 脚本连续监听消息队列还是必须循环?

azure - 通过 Powershell 创建 Azure Monitor 日志搜索警报规则

azure - 如果 count 参数设置为 0,则条件资源将被销毁

azure - 如何将 Github Actions 与 Azure Devops Pipelines 结合使用