<PackageReference Include="System.IO.Pipelines" Version="10.0.0-preview.7.25380.108" />

PipeOptions

public class PipeOptions
Represents a set of Pipe options.
public static PipeOptions Default { get; }

Gets the default instance of PipeOptions.

public int MinimumSegmentSize { get; }

Gets the minimum size of the segment requested from the Pool.

public long PauseWriterThreshold { get; }

Gets the number of bytes in the Pipe when FlushAsync starts blocking. A value of zero prevents FlushAsync from ever blocking, effectively making the number of bytes in the Pipe unlimited.

public MemoryPool<byte> Pool { get; }

Gets the MemoryPool<T> object used for buffer management.

Gets the PipeScheduler used to execute PipeReader callbacks and async continuations.

public long ResumeWriterThreshold { get; }

Gets the number of bytes in the Pipe when FlushAsync stops blocking.

public bool UseSynchronizationContext { get; }

Gets a value that determines if asynchronous callbacks and continuations should be executed on the SynchronizationContext they were captured on. This takes precedence over the schedulers specified in ReaderScheduler and WriterScheduler.

Gets the PipeScheduler used to execute PipeWriter callbacks and async continuations.

public PipeOptions(MemoryPool<byte> pool = null, PipeScheduler readerScheduler = null, PipeScheduler writerScheduler = null, long pauseWriterThreshold = -1, long resumeWriterThreshold = -1, int minimumSegmentSize = -1, bool useSynchronizationContext = true)

Initializes a new instance of the PipeOptions class with the specified parameters.