Share via


PipeOptions コンストラクター

定義

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

public PipeOptions (System.Buffers.MemoryPool<byte> pool = default, System.IO.Pipelines.PipeScheduler readerScheduler = default, System.IO.Pipelines.PipeScheduler writerScheduler = default, long pauseWriterThreshold = 32768, long resumeWriterThreshold = 16384, int minimumSegmentSize = 2048, bool useSynchronizationContext = true);
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);
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 = 32768, Optional resumeWriterThreshold As Long = 16384, Optional minimumSegmentSize As Integer = 2048, Optional useSynchronizationContext As Boolean = true)
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

PipeWriter のコールバックおよび非同期継続を実行するために使用される PipeScheduler

pauseWriterThreshold
Int64

FlushAsync(CancellationToken) でブロックが開始される前の Pipe のバイト数。 値を 0 にすると、FlushAsync(CancellationToken) によるブロックが回避され、Pipe のバイト数が事実上無制限になります。

resumeWriterThreshold
Int64

FlushAsync(CancellationToken) でブロックが停止されたときの Pipe のバイト数。

minimumSegmentSize
Int32

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

useSynchronizationContext
Boolean

キャプチャされた true で非同期継続を実行する場合は SynchronizationContext。それ以外の場合は false。 これは、ReaderSchedulerWriterScheduler で指定したスケジューラよりも優先されます。

適用対象