I am starting a child process that provides a WCF endpoint. How can I pass the signal from the child process to the parent process that the child is fully initialized and that he can now access the endpoint?
I was thinking about using Semaphores for this purpose, but I cannot figure out how to achieve the required signal.
string pipeUri = "net.pipe://localhost/Node0";
ProcessStartInfo startInfo = new ProcessStartInfo("Node.exe", "-uri=" + pipeUri);
Process p = Process.Start(startInfo);
NetNamedPipeBinding binding = new NetNamedPipeBinding();
var channelFactory = new ChannelFactory<INodeController>(binding);
INodeController controller = channelFactory.CreateChannel(new EndpointAddress(pipeUri));
controller.Ping()
source
share