MessageFormatterEnumerableTracker 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個輔助類別,實 IJsonRpcMessageFormatter 作可能會用來支援 IAsyncEnumerable<T> RPC 方法的回傳值。
public class MessageFormatterEnumerableTracker
type MessageFormatterEnumerableTracker = class
Public Class MessageFormatterEnumerableTracker
- 繼承
-
MessageFormatterEnumerableTracker
建構函式
| 名稱 | Description |
|---|---|
| MessageFormatterEnumerableTracker(JsonRpc, IJsonRpcFormatterState) |
初始化 MessageFormatterEnumerableTracker 類別的新執行個體。 |
欄位
| 名稱 | Description |
|---|---|
| TokenPropertyName |
承載可枚舉柄的字串屬性名稱。 |
| ValuesPropertyName |
包含這些值的 JSON 陣列屬性名稱。 |
方法
| 名稱 | Description |
|---|---|
| CanDeserialize(Type) |
檢查給定 Type 是否恰好是基於某 IAsyncEnumerable<T>個封閉泛型。 |
| CanSerialize(Type) |
檢查給定 Type 的 是否實 IAsyncEnumerable<T>作 。 |
| CreateEnumerableProxy<T>(Object, IReadOnlyList<T>) |
消費者用來構建一個代理 IAsyncEnumerable<T> 伺服器,實現並取得所有值,這些值都來自遠端產生器。 |
| GetToken<T>(IAsyncEnumerable<T>) |
生成元用來為給定 IAsyncEnumerable<T>的 指派 handle 。 |