<PackageReference Include="SSH.NET" Version="2020.0.2" />

PipeStream

public class PipeStream : Stream
PipeStream is a thread-safe read/write data stream for use between two threads in a single-producer/single-consumer type problem.
public bool BlockLastReadBuffer { get; set; }

Gets or sets a value indicating whether to block last read method before the buffer is empty. When true, Read() will block until it can fill the passed in buffer and count. When false, Read() will not block, returning all the available buffer data.

public long MaxBufferLength { get; set; }

Gets or sets the maximum number of bytes to store in the buffer.

public PipeStream()