Share via


MessageFormatterProgressTracker Class

Definition

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

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.

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)

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.

Applies to