I have a couple of apps talking to each other, and I use a NamedPipe. But if the other app isn't available then the NamedPipe waits for ever to connect. It also doesn't support timeouts.
What's the right way to do this?
I have a couple of apps talking to each other, and I use a NamedPipe. But if the other app isn't available then the NamedPipe waits for ever to connect. It also doesn't support timeouts.
What's the right way to do this?
Are you using the NamedPipeClientStream class? If so there is an overload of Connect which takes a timeout value. That will allow you to specify how long you wait before giving up.