从Webjob调用Logic App [英] Call Logic App from Webjob

查看:100
本文介绍了从Webjob调用Logic App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好 -


我们可以从Webjob调用Logic应用吗?


我打算像Webjob输出那样传递给逻辑应用程序输入。


逻辑应用程序操作将从webjob获取输入数据连接到内部部署的DB2表 并得到结果。


提前致谢!!!




RB

解决方案

在将Web作业输出直接写入逻辑应用程序时,我无法找到与您分享的示例。但是,我找到了一个示例,允许您将Web作业的输出放入Service Bus队列。

 public static async void Transform(
[ ServiceBusTrigger("%InputQueue%")]字符串输入,
[ServiceBus("%OutputQueue%")] IAsyncCollector< string>输出,
TextWriter日志)
{
await output.AddAsync(input);
}




从此处您可以设置服务总线触发器在Logic App中使用DB2引发工作流程。



Hello -

Can we call Logic app from Webjob.

I am planning to do something like Webjob output to be passed to logic app input.

Logic App action will take the input data from webjob and connect to DB2 tables in on-premise  and get the result back.

Thanks in advance !!!


RB

解决方案

I'm unable to find samples to share with you on directly writing a web job output to a Logic App. I have however found a sample that allows you to place the output of your web job into a Service Bus queue.

 public static async void Transform(
[ServiceBusTrigger("%InputQueue%")] string input,
[ServiceBus("%OutputQueue%")] IAsyncCollector<string> output,
TextWriter log)
    {            
        await output.AddAsync(input);
    }


From here you should be able to setup a Service Bus trigger inside the Logic App to engage DB2 throw a work flow.


这篇关于从Webjob调用Logic App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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