本文介绍了Azure WebJob多个可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建WebJob(控制台可执行文件).该.exe会再次调用一种配置的插件,该插件以可执行文件的形式出现.因此,当我部署WebJob时,它包含3个或更多可执行文件.有没有办法仅将一个.exe作为WebJob执行并阻止其他.exe的执行?预先感谢

I am creating a WebJob (console executable). This .exe invokes one of the configured plug-ins which are in the form of executable again.So, when I deploy a WebJob, it contains 3 or more executable. Is there a way to execute only one .exe as a WebJob and block the execution of other .exe ?Thanks in advance

推荐答案

此处最好的做法是在WebJobs文件的根目录中也包含一个run.cmd文件,并使其成为单行代码运行您想要的任何exe.完成此操作后,仅将执行此批处理文件,从而使您可以精确控制要运行的文件.

The best thing to do here is to also include a run.cmd file at the root of your WebJobs files, and have it just be a one-liner that runs whichever exe you want. Once you do that, only this batch file will be executed, giving you precise control over exactly what you want to run.

您会在此处找到更多详细信息.

You'll find more details here.

这篇关于Azure WebJob多个可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:28