我有一个Console项目和一个WCFService项目的解决方案。
在WCF我添加了对Console.
如何运行控制台Process System.Diagnostics;`?from the service?
Do I need to create a newusing
在WCF我有以下方法,这是我要运行控制台的地方:
public String WelComeMessage(String name) {
Process myConsole = new Process(); ///<<<maybe not required?
//<want run the console here
return String.Format("{0}, Welcome to http://blah.com", name);
}
所以在VS中它现在看起来像这样:
