MessageFormatterProgressTracker Class
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.
Class containing useful methods to help message formatters implement support for IProgress<T>.
public class MessageFormatterProgressTracker
type MessageFormatterProgressTracker = class
Public Class MessageFormatterProgressTracker
- Inheritance
-
MessageFormatterProgressTracker
Constructors
MessageFormatterProgressTracker() | |
MessageFormatterProgressTracker(JsonRpc, IJsonRpcFormatterState) |
Initializes a new instance of the MessageFormatterProgressTracker class. |
Fields
ProgressRequestSpecialMethod |
Special method name for progress notification. |
Properties
RequestIdBeingSerialized |
Gets or Sets the id of the request currently being serialized so the converter can use it to create the request-progress map. |
Methods
CanDeserialize(Type) |
Checks if a given Type is a closed generic of IProgress<T>. |
CanSerialize(Type) |
Checks if a given Type implements IProgress<T>. |
CreateProgress(JsonRpc, Object, Type, 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. |
CreateProgress<T>(JsonRpc, Object, 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. |
FindIProgressOfT(Type) |
Converts given Type to its IProgress<T> type. |
GetTokenForProgress(Object) |
Gets a Int64 type token to use as replacement of an Object implementing IProgress<T> in the JSON message. |
IsSupportedProgressType(Type) |
Obsolete.
Checks if a given Type implements IProgress<T>. |
OnResponseReceived(Int64) |
Call this method when a response is received to clear the objects associated with the request and avoid a memory leak. |
TryGetProgressObject(Int64, MessageFormatterProgressTracker+ProgressParamInformation) |
Gets the MessageFormatterProgressTracker.ProgressParamInformation object associated with the given progress id. |
TryGetProgressObject(Object, MessageFormatterProgressTracker+ProgressParamInformation) |
Gets the MessageFormatterProgressTracker.ProgressParamInformation object associated with the given progress id. |