I have a windows service and a GUI that need to communicate with each other. Either can send messages at any time.
I\'m looking at using NamedPipes, but it seems tha
Using a single point to accumulate messages (a single pipe in this case) forces you to handle direction of the message yourself too (in addition to that you have to use a system-wide lock for the pipe).
So use 2 pipes with opposite directions.
(Another option would be using 2 MSMQ queues).