Table of Contents

Class DuplexPipe

Namespace
Nerdbank.Streams
Assembly
Nerdbank.Streams.dll

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 PipeReader

The reader.

DuplexPipe(PipeReader?, PipeWriter?)

Initializes a new instance of the DuplexPipe class.

public DuplexPipe(PipeReader? input, PipeWriter? output)

Parameters

input PipeReader

The reader. If null, a completed reader will be emulated.

output PipeWriter

The 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 PipeWriter

The writer.

Properties

Input

Gets the PipeReader half of the duplex pipe.

public PipeReader Input { get; }

Property Value

PipeReader

Output

Gets the PipeWriter half of the duplex pipe.

public PipeWriter Output { get; }

Property Value

PipeWriter