共用方式為


MessageFormatterProgressTracker.CreateProgress 方法

定義

多載

CreateProgress(JsonRpc, Object, Type)

建立 的新實例 IProgress<T> ,以用於 RPC 呼叫的接收端。

CreateProgress<T>(JsonRpc, Object)

建立 的新實例 IProgress<T> ,以用於 RPC 呼叫的接收端。

CreateProgress(JsonRpc, Object, Type)

建立 的新實例 IProgress<T> ,以用於 RPC 呼叫的接收端。

public object CreateProgress (StreamJsonRpc.JsonRpc rpc, object token, Type valueType);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj * Type -> obj
Public Function CreateProgress (rpc As JsonRpc, token As Object, valueType As Type) As Object

參數

rpc
JsonRpc

JsonRpc用來傳送通知的 ProgressRequestSpecialMethod 實例。

token
Object

用來從 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap 取得實例的 MessageFormatterProgressTracker.ProgressParamInformation 權杖。

valueType
Type

intance 將報告的類型 IProgress<T>

傳回

適用於

CreateProgress<T>(JsonRpc, Object)

建立 的新實例 IProgress<T> ,以用於 RPC 呼叫的接收端。

public IProgress<T> CreateProgress<T> (StreamJsonRpc.JsonRpc rpc, object token);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj -> IProgress<'T>
Public Function CreateProgress(Of T) (rpc As JsonRpc, token As Object) As IProgress(Of T)

類型參數

T

要報告 IProgress<T> 之值的型別。

參數

rpc
JsonRpc

JsonRpc用來傳送通知的 ProgressRequestSpecialMethod 實例。

token
Object

用來從 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap 取得實例的 MessageFormatterProgressTracker.ProgressParamInformation 權杖。

傳回

適用於