PipeOptions 類別

定義

代表一組 Pipe 選項。

public ref class PipeOptions
public class PipeOptions
type PipeOptions = class
Public Class PipeOptions
繼承
PipeOptions

建構函式

名稱 Description
PipeOptions(MemoryPool<Byte>, PipeScheduler, PipeScheduler, Int64, Int64, Int32, Boolean)

初始化一個新的類別實例 PipeOptions ,並以指定參數進行。

屬性

名稱 Description
Default

會得到預設的實例。PipeOptions

MinimumSegmentSize

取得從 .Pool

PauseWriterThreshold

它會取得開始阻塞時FlushAsync(CancellationToken)的位元組Pipe數。 值為零則 FlushAsync(CancellationToken) 無法阻擋,實際上使位元組 Pipe 數量無限。

Pool

取得 MemoryPool<T> 用於緩衝區管理的物件。

ReaderScheduler

它被 PipeScheduler 用來執行 PipeReader 回調和非同步續接。

ResumeWriterThreshold

它會取得停止阻塞時FlushAsync(CancellationToken)Pipe位元組數。

UseSynchronizationContext

會取得一個值,決定是否應該在被捕捉的 AI SynchronizationContext 上執行非同步回調與延續。 此優先權高於 與 中指定的ReaderSchedulerWriterScheduler排程器。

WriterScheduler

它被 PipeScheduler 用來執行 PipeWriter 回調和非同步續接。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於