语言

MessageFormatterProgressTracker.CreateProgress 方法

定义

重载

名称 说明
CreateProgress(JsonRpc, Object, Type)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

CreateProgress(JsonRpc, Object, Type, Boolean)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

CreateProgress<T>(JsonRpc, Object)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

CreateProgress<T>(JsonRpc, Object, Boolean)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

CreateProgress(JsonRpc, Object, Type)

Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs

创建一个新实例,用于 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

输入将报告的类型 IProgress<T> 。

返回

注解

此重载创建 IProgress<T> 在其通知中 不使用 命名参数的重载。

适用于

CreateProgress(JsonRpc, Object, Type, Boolean)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

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

参数

rpc
JsonRpc

JsonRpc用于发送通知的ProgressRequestSpecialMethod实例。

token
Object

用于从StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap中获取实例的MessageFormatterProgressTracker.ProgressParamInformation令牌。

valueType
Type

一种泛型类型,其第一个泛型类型参数是用作所创建的 IProgress<T>类型参数。

clientRequiresNamedArguments
Boolean

true 使用命名参数发出 $/progress 通知; false 使用位置参数。

返回

适用于

CreateProgress<T>(JsonRpc, Object)

Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs
Source:
MessageFormatterProgressTracker.cs

创建一个新实例,用于 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令牌。

返回

注解

此重载创建 IProgress<T> 在其通知中 不使用 命名参数的重载。

适用于

CreateProgress<T>(JsonRpc, Object, Boolean)

创建一个新实例,用于 IProgress<T> RPC 调用的接收端。

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

类型参数

T

要报告 IProgress<T>的值的类型。

参数

rpc
JsonRpc

JsonRpc用于发送通知的ProgressRequestSpecialMethod实例。

token
Object

用于从StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap中获取实例的MessageFormatterProgressTracker.ProgressParamInformation令牌。

clientRequiresNamedArguments
Boolean

true 使用命名参数发出 $/progress 通知; false 使用位置参数。

返回

适用于