StreamDuplexPipe
Wraps a bidirectional Stream as an IDuplexPipe. Suitable for TCP NetworkStream, named pipes, etc. The caller retains ownership of the Stream lifetime.
- Kind:
Class - Namespace: Repl.Telnet
- Assembly:
Repl.Telnet - Source: src/Repl.Telnet/StreamDuplexPipe.cs
Signature
Section titled “Signature”public sealed class StreamDuplexPipe : IDuplexPipe, IAsyncDisposableInheritance
Section titled “Inheritance”Implements
Section titled “Implements”Constructors
Section titled “Constructors”StreamDuplexPipe(Stream)
Section titled “StreamDuplexPipe(Stream)”Creates a duplex pipe backed by the specified stream.
public StreamDuplexPipe(Stream stream)Parameters
Section titled “Parameters”stream(Stream)
Methods
Section titled “Methods”DisposeAsync()
Section titled “DisposeAsync()”Completes the pipe reader and writer. Does not close the underlying stream.
public ValueTask DisposeAsync()Returns
Section titled “Returns”Properties
Section titled “Properties”Gets the PipeReader half of the duplex pipe.
public PipeReader Input { get; }Returns
Section titled “Returns”Output
Section titled “Output”Gets the PipeWriter half of the duplex pipe.
public PipeWriter Output { get; }