MessageFormatterProgressTracker.CreateProgress 方法

定义

重载

CreateProgress(JsonRpc, Object, Type)

创建在 RPC 调用的接收端使用 的新实例 IProgress<T>

CreateProgress<T>(JsonRpc, Object)

创建在 RPC 调用的接收端使用 的新实例 IProgress<T>

CreateProgress(JsonRpc, Object, Type)

创建在 RPC 调用的接收端使用 的新实例 IProgress<T>

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)

创建在 RPC 调用的接收端使用 的新实例 IProgress<T>

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令牌。

返回

适用于