PipeOptions コンストラクター

定義

指定したパラメーターを使用して、 PipeOptions クラスの新しいインスタンスを初期化します。

public PipeOptions(System.Buffers.MemoryPool<byte>? pool = default, System.IO.Pipelines.PipeScheduler? readerScheduler = default, System.IO.Pipelines.PipeScheduler? writerScheduler = default, long pauseWriterThreshold = -1, long resumeWriterThreshold = -1, int minimumSegmentSize = -1, bool useSynchronizationContext = true);
new System.IO.Pipelines.PipeOptions : System.Buffers.MemoryPool<byte> * System.IO.Pipelines.PipeScheduler * System.IO.Pipelines.PipeScheduler * int64 * int64 * int * bool -> System.IO.Pipelines.PipeOptions
Public Sub New (Optional pool As MemoryPool(Of Byte) = Nothing, Optional readerScheduler As PipeScheduler = Nothing, Optional writerScheduler As PipeScheduler = Nothing, Optional pauseWriterThreshold As Long = -1, Optional resumeWriterThreshold As Long = -1, Optional minimumSegmentSize As Integer = -1, Optional useSynchronizationContext As Boolean = true)

パラメーター

pool
MemoryPool<Byte>

バッファー管理に使用するメモリ ブロックのプール。

readerScheduler
PipeScheduler

PipeReaderコールバックと非同期継続の実行に使用するPipeScheduler

writerScheduler
PipeScheduler

PipeScheduler PipeWriterコールバックと非同期継続を実行するために使用されます。

pauseWriterThreshold
Int64

FlushAsync(CancellationToken)がブロックを開始するまでのPipe内のバイト数。 値が 0 の場合、 FlushAsync(CancellationToken) がブロックされなくなり、 Pipe 内のバイト数が無制限になります。

resumeWriterThreshold
Int64

FlushAsync(CancellationToken)がブロックを停止した場合のPipe内のバイト数。

minimumSegmentSize
Int32

poolから要求されたセグメントの最小サイズ。

useSynchronizationContext
Boolean

true キャプチャされた SynchronizationContext に対して非同期継続を実行する必要がある場合は false 。それ以外の場合は。 これは、 ReaderScheduler および WriterSchedulerで指定されたスケジューラよりも優先されます。

適用対象