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

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

问题描述

我们有一个带有事件中心触发器的Azure功能.同一Azure功能是否可以在多个事件中心上触发?

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 17年1月18日在18:23): 没有计划为每个功能支持多个触发器.您将必须为每个EventHub创建一个Function.如果在功能之间可以共享通用代码,则可以将它们移到可以从每个功能调用的辅助方法中.

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天全站免登陆