Interface IJsonRpcTracingCallbacks
- Namespace
- StreamJsonRpc.Reflection
- Assembly
- StreamJsonRpc.dll
An interface implemented by JsonRpc for IJsonRpcMessageFormatter implementations to use to facilitate message tracing.
public interface IJsonRpcTracingCallbacks
Methods
OnMessageDeserialized(JsonRpcMessage, object)
Occurs when the IJsonRpcMessageFormatter has deserialized an incoming message.
void OnMessageDeserialized(JsonRpcMessage message, object encodedMessage)
Parameters
message
JsonRpcMessageThe JSON-RPC message.
encodedMessage
objectThe encoded form of the message. Calling ToString() on this should produce the JSON-RPC text of the message.
OnMessageSerialized(JsonRpcMessage, object)
Occurs when the IJsonRpcMessageFormatter has serialized a message for transmission.
void OnMessageSerialized(JsonRpcMessage message, object encodedMessage)
Parameters
message
JsonRpcMessageThe JSON-RPC message.
encodedMessage
objectThe encoded form of the message. Calling ToString() on this should produce the JSON-RPC text of the message.