Share via


MessageFormatterProgressTracker.CreateProgress Method

Definition

Overloads

CreateProgress(JsonRpc, Object, Type)

Creates a new instance of IProgress<T> to use on the receiving end of an RPC call.

CreateProgress<T>(JsonRpc, Object)

Creates a new instance of IProgress<T> to use on the receiving end of an RPC call.

CreateProgress(JsonRpc, Object, Type)

Creates a new instance of IProgress<T> to use on the receiving end of an RPC call.

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

Parameters

rpc
JsonRpc

The JsonRpc instance used to send the ProgressRequestSpecialMethod notification.

token
Object

The token used to obtain the MessageFormatterProgressTracker.ProgressParamInformation instance from StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap.

valueType
Type

The type that the IProgress<T> intance will report.

Returns

Applies to

CreateProgress<T>(JsonRpc, Object)

Creates a new instance of IProgress<T> to use on the receiving end of an RPC call.

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)

Type Parameters

T

The type of the value to be reported by IProgress<T>.

Parameters

rpc
JsonRpc

The JsonRpc instance used to send the ProgressRequestSpecialMethod notification.

token
Object

The token used to obtain the MessageFormatterProgressTracker.ProgressParamInformation instance from StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap.

Returns

Applies to