且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当SQL数据库添加了新行而不进行轮询时,C#Azure函数触发器

更新时间:2023-02-08 23:06:58

可能,但是目前仍处于试验阶段.我将在此答案的结尾处放一本指南,您会发现它很简单.再次,这是实验性的,不要期望它一直都能正常工作.

It is possible but it's experimental right now. There's a guide that I'm putting at the end of this answer and you'll see that it's pretty straight forward. But again, this is experimental and don't expect that it works well all the time.

代码中的另一个选项是插入一条记录,以便向服务总线队列发送一条消息,然后您可以将其用作功能触发(通过服务总线,您还可以配置一个无效字母排队等待重试.

Another option will be in the code you have that insert a record to also send a message to queue o service bus and you can then make use of that as a trigger to your function (with service bus you also configure a dead letter queue for retries).

参考: https://docs .microsoft.com/en-us/azure/azure-functions/functions-bindings-external-table