tags:

views:

436

answers:

1

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?

+2  A: 

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.

JaredPar
Did you mean NamedPipeClientStream?
Hans Passant
Thanks for the typo catch
JaredPar