PipeOptions
Represents a set of Pipe options.
Gets the default instance of PipeOptions.
Gets the minimum size of the segment requested from the Pool.
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.
Gets the MemoryPool<T> object used for buffer management.
Gets the PipeScheduler used to execute PipeReader callbacks and async continuations.
Gets the number of bytes in the Pipe when FlushAsync stops blocking.
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.