I am looking for advice on the best approach for doing inter-process communication.
The solution consists of 3 projects.
GUI: This will only display messages to the user and get user input
Windows Service: Communicates with the UI and runs the 3rd module using elevated credentials
Worker: Internal DLL that will perform the actual work
I need a way to make the worker communicate with the GUI directly to send and receive updates.
I have two ways in mind to do it (will be happy to see more suggestions):
Use two named pipes. One for the GUI<>Service communication. And the other for GUI<>Worker communication
Raise an event from Worker to Service. And use WCF callback from service to UI
What will be the best way to implement the communication?
NOTE: The problem here is the GUI<>Worker communication. Not the UI<>Service communication.