开发者

Pass parameters to Windows Service to fire method

I'm attempting to build a Windows Service which will execute some method when a user clicks a button in a WinForms application. I'd like to be able to pass 开发者_JAVA百科in a few strings when the user presses the GUI button which will have the service consume them and processes a specific method. What's the best way to do this?

Thanks for help.


WCF is a handy way to handle interprocess communication. Configure it to use named pipes and it can listen for your request. Or use the MSMQ option instead if you really don't care about the response.


Check our MsgConnect (free with source), which has been created for tasks similar to yours. It's fast and has API similar to windows messages api.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜