Example #1
0
 public StreamPipeConnection(PipeFactory factory, Stream stream)
 {
     Input  = factory.CreateReader(stream);
     Output = factory.CreateWriter(stream);
 }
 public static IPipeConnection CreateConnection(this PipeFactory factory, NetworkStream stream)
 {
     return(new StreamPipeConnection(factory, stream));
 }