Azure 函数的多个触发器 [英] Multiple triggers for an Azure Function

查看:25
本文介绍了Azure 函数的多个触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个带有事件中心触发器的 Azure 函数.是否可以在多个事件中心上为同一个 Azure Function 设置触发器?

We have an Azure Function that has an event hub trigger. Is it possible to have a trigger on more than one event hub for the same Azure Function?

推荐答案

不,目前不支持此方案.

No, this is not a supported scenario at the moment.

来自评论(Ling Toh 2017 年 1 月 18 日 18:23):没有计划支持每个函数的多个触发器.您必须为每个 EventHub 创建一个函数.如果函数之间有可能共享的公共代码,您可以将它们移到可以从每个函数调用的辅助方法中.

From comments (Ling Toh Jan 18 '17 at 18:23): There are no plans to support multiple triggers per Function. You will have to create a Function for each EventHub. If there is common code that may be shared between Functions, you may move them to a helper method that can be called from each Function.

这篇关于Azure 函数的多个触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆