- 点赞 评论 复制链接分享
You have two solutions here :
点赞 评论 复制链接分享
- Build a WCF service that you'll then use by doing SOAP calls
- Use a Socket to communicate
Well this might be tricky because of the concurrency on the calls to the C# programm.
You could create a Webservice that is starting the C# program with the variables as arguments.
Or you might write the variables into a table and have the C# program poll for new entries to that table. This would overcome the concurrency issue. Combined with a WebService that writes the variables into the a table - this solution is working just fine.点赞 评论 复制链接分享
Why not just have it listen for commands on a socket?点赞 评论 复制链接分享