如何使用asp.net C#代码将变量(参数)从Web应用程序传递到Windows应用程序

如何使用asp.net C#代码将变量(参数)从Web应用程序传递到Windows应用程序

问题描述:

我正在研究asp.net项目。因为我想通过asp.net代码访问远程桌面,但我无法访问。所以另一种方式我想将我在asp.net中使用的相同参数传递给windows应用程序。

提前谢谢。

I am working on asp.net project. in that i want to access remote desktop through asp.net code, but i am not able to access. so another way i want to pass same argument which i used in asp.net to windows application.
Thanks in advance.

你可以使用WCF(Windows Communication Foundation)在Web应用程序和Windows应用程序之间进行通信。所以你的Windows应用程序应该实现WCF服务,你的Web应用程序应该实现WCF客户端。



您可以在CodeProject上找到很多关于WCF的文章,这里是最好的文章之一: Windows Communication Foundation FAQ快速入门:第1部分 [ ^ ]
You can use WCF (Windows Communication Foundation) for communicating between web application and your windows application. So you windows application should implement the WCF service and your web application should implement the WCF client.

You could find a lot of articles regarding WCF also on CodeProject, here is one of the best: Windows Communication Foundation FAQ quick starter: Part 1[^]