A multi-program communication is required, with WCF and WCF service being the current choice.
Requirements: communicates with the product, interacts with the user, and transmits the final result to a DB
Basic ideas:
1. Communicate with the WPF client program and product to obtain the necessary results.
2. The WPF client program calls the WCF proxy and sends the result to a WCF Service.
3. Another program obtains the result from another WCF proxy and transmits it to the DB
Control System (Service) <--------------------> WCF service (Host in Windows service) <------------- ----------> UI Application
| | (comunication)
WCF Client (Proxy, GetResult) Device.
|
Upload to DB
Basic implementation:
1. Create the WCF service Library to implement the interface for the WCF service.
2. Create a Windows service and set the WCF service Host to Windows service.
3. Create a WPF UI program that implements communication with device.
Problem and debug:
1. When there is a problem with the service, you can use EventViewer to assist with Debug.
Reference:
1. http://blog.csdn.net/hebeijg/article/details/6161228
2. http://www.codeproject.com/Articles/38160/WCF-Service-Library-with-Windows-Service-Hosting
(WCF) WCF and Service Debug