MessageFormatterProgressTracker.CreateProgress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateProgress(JsonRpc, Object, Type) |
Creates a new instance of IProgress<T> to use on the receiving end of an RPC call. |
CreateProgress(JsonRpc, Object, Type, Boolean) |
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<T>(JsonRpc, Object, Boolean) |
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
Remarks
This overload creates an IProgress<T> that does not use named arguments in its notifications.
Applies to
CreateProgress(JsonRpc, Object, Type, Boolean)
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, 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
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
A generic type whose first generic type argument is to serve as the type argument for the created IProgress<T>.
- clientRequiresNamedArguments
- Boolean
true
to issue $/progress notifications using named args; false
to use positional arguments.
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
Remarks
This overload creates an IProgress<T> that does not use named arguments in its notifications.
Applies to
CreateProgress<T>(JsonRpc, Object, Boolean)
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, 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)
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.
- clientRequiresNamedArguments
- Boolean
true
to issue $/progress notifications using named args; false
to use positional arguments.