Table of Contents

Interface IJsonRpcFormatterTracingCallbacks

Namespace
StreamJsonRpc.Reflection
Assembly
StreamJsonRpc.dll

Optionally implemented by a IJsonRpcMessageFormatter when it needs the fully serialized sequence in order to trace the JSON representation of the message.

public interface IJsonRpcFormatterTracingCallbacks

Methods

OnSerializationComplete(JsonRpcMessage, ReadOnlySequence<byte>)

Invites the formatter to call OnMessageSerialized(JsonRpcMessage, object) with the JSON representation of the message just serialized..

void OnSerializationComplete(JsonRpcMessage message, ReadOnlySequence<byte> encodedMessage)

Parameters

message JsonRpcMessage

The message that was just serialized.

encodedMessage ReadOnlySequence<byte>

The encoded copy of the message, as it recently came from the Serialize(IBufferWriter<byte>, JsonRpcMessage) method.