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

PipeScheduler 콜백 및 비동기 연속을 실행하는 PipeReader 데 사용할 수 있습니다.

writerScheduler
PipeScheduler

PipeScheduler 콜백 및 비동기 연속 작업을 실행하는 PipeWriter 데 사용됩니다.

pauseWriterThreshold
Int64

차단을 시작하기 전 FlushAsync(CancellationToken)Pipe 바이트 수입니다. 값이 0 FlushAsync(CancellationToken) 이면 차단할 수 없으므로 바이트 수를 무제한으로 효과적으로 만들 수 Pipe 있습니다.

resumeWriterThreshold
Int64

차단을 중지할 때 FlushAsync(CancellationToken)Pipe 바이트 수입니다.

minimumSegmentSize
Int32

에서 요청 pool된 세그먼트의 최소 크기입니다.

useSynchronizationContext
Boolean

캡처된 항목에서 비동기 연속 작업을 실행해야 하면 이고, 그렇지 않으면 실행됩니다. 이는 지정된 스케줄러 및 WriterScheduler.보다 ReaderScheduler 우선합니다.

적용 대상