Table of Contents

Interface IJsonRpcMessageBufferManager

Namespace
StreamJsonRpc.Reflection
Assembly
StreamJsonRpc.dll

An interface that may be found on an IJsonRpcMessageHandler object to request notification of when message deserialization is completed so buffers can be released or safely recycled.

public interface IJsonRpcMessageBufferManager

Methods

DeserializationComplete(JsonRpcMessage)

Notifies that it is safe to free buffers held to deserialize the payload for a message because all deserialization attempts are completed.

void DeserializationComplete(JsonRpcMessage message)

Parameters

message JsonRpcMessage

The message whose deserialization is done.

Remarks

Implementations are guaranteed to be called at least once for each message when deserialization is completed. This method will be invoked before the next request to ReadAsync(CancellationToken).