IJsonRpcMessageFormatter.GetJsonText(JsonRpcMessage) Method

Definition

Caution

Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.

Gets a JSON representation for a given message for tracing purposes.

public object GetJsonText (StreamJsonRpc.Protocol.JsonRpcMessage message);
[System.Obsolete("Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.")]
public object GetJsonText (StreamJsonRpc.Protocol.JsonRpcMessage message);
abstract member GetJsonText : StreamJsonRpc.Protocol.JsonRpcMessage -> obj
[<System.Obsolete("Tracing is now done via the IJsonRpcTracingCallbacks and IJsonRpcFormatterTracingCallbacks interfaces. Formatters may throw NotSupportedException from this method.")>]
abstract member GetJsonText : StreamJsonRpc.Protocol.JsonRpcMessage -> obj
Public Function GetJsonText (message As JsonRpcMessage) As Object

Parameters

message
JsonRpcMessage

The message to be traced.

Returns

Any object whose ToString() method will produce a human-readable JSON string, suitable for tracing.

Attributes

Applies to