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<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.