PipeOptions 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 매개 변수를 사용하여 클래스의 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