Class DuplexPipe
A basic implementation of IDuplexPipe.
public sealed class DuplexPipe : IDuplexPipe
- Inheritance
-
DuplexPipe
- Implements
- Inherited Members
- Extension Methods
Constructors
DuplexPipe(PipeReader)
Initializes a new instance of the DuplexPipe class that only allows reading. The Output property will reject writes.
public DuplexPipe(PipeReader input)
Parameters
inputPipeReaderThe reader.
DuplexPipe(PipeReader?, PipeWriter?)
Initializes a new instance of the DuplexPipe class.
public DuplexPipe(PipeReader? input, PipeWriter? output)
Parameters
inputPipeReaderThe reader. If null, a completed reader will be emulated.
outputPipeWriterThe writer. If null, a completed writer will be emulated.
DuplexPipe(PipeWriter)
Initializes a new instance of the DuplexPipe class that only allows writing. The Input property will report completed reading.
public DuplexPipe(PipeWriter output)
Parameters
outputPipeWriterThe writer.
Properties
Input
Gets the PipeReader half of the duplex pipe.
public PipeReader Input { get; }
Property Value
Output
Gets the PipeWriter half of the duplex pipe.
public PipeWriter Output { get; }