Is it possible to cancel a BeginRead on a NamedPipeServerStream without closing the pipe?
Posted
by romkyns
on Stack Overflow
See other posts from Stack Overflow
or by romkyns
Published on 2010-05-13T21:41:28Z
Indexed on
2010/05/13
21:44 UTC
Read the original article
Hit count: 137
.NET
What the title says, really.
I have a named pipe. I would like to attempt a read, but if it doesn't succeed after a timeout I'd like to still be able to use the pipe afterwards.
Is this possible with NamedPipeServerStream
, or do I have to rethink the entire approach?
So far the only way I've found of cancelling a BeginRead
is by disposing of the pipe.
© Stack Overflow or respective owner