title: Timeout on a NamedPipe in C#
body: <p>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.</p>
  
  <p>What's the right way to do this?</p>