Inter application communication - which approach to take?
I'm making a little application which will control a sort of a hardware indicator thingie (usable as a volume indicator, processor load meter and such).
My goal is to make the device accessible to other applications as easily as possible. What would be the best appr开发者_运维问答oach to go about this? I was thinking making a "web" service on the local host using a small server applicatoin. An application would access the device in such a way as "127.0.0.1:23456/foo?par1=123?par2=456" etc. The server would then parse the input. The server would be a sort of middle man (the device communicates with the PC via an USB serial port).
Is this the proper way of doing this, or is there a better way of doing this?
Thanks,
David PS: This is my first post here. So I'm sorry for anything I may have omitted.
The 'application' you describe sounds more like a Control. In which case, pack it in an assembly that the other project(s) can include.
If you do want it to run as a service, the appropriate choice would be WCF. That will let you communicate over HTTP, TCP or IPC protocols as the situation requires. Without changing your service.
精彩评论