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
input
PipeReaderThe reader.
DuplexPipe(PipeReader?, PipeWriter?)
Initializes a new instance of the DuplexPipe class.
public DuplexPipe(PipeReader? input, PipeWriter? output)
Parameters
input
PipeReaderThe reader. If null, a completed reader will be emulated.
output
PipeWriterThe 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
output
PipeWriterThe 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; }