简体   繁体   English

在服务结构中将参数传递给来宾执行

[英]Passing Arguments to guest execuatble in service fabric

i have a console application which i am deploying in service faric as guest executable.It accept two parameters, when deploying using visual studio we can pass arguments under ExeHost tag inside Servicemanifest.xml file. 我有一个控制台应用程序,它作为来宾可执行文件部署在服务区域中。它接受两个参数,使用Visual Studio进行部署时,我们可以在Servicemanifest.xml文件内的ExeHost标记下传递参数。 How to achieve the same through c# code using CreateApplicationAsync or any other methods enter image description here 如何使用CreateApplicationAsync或任何其他方法通过c#代码实现相同目的,请在此处输入图像描述

Example

You can use many options: 您可以使用许多选项:

  • Use config files 使用配置文件
  • Query from database 从数据库查询
  • Change the service manifest at deployment time 在部署时更改服务清单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM