Share via


IJsonRpcMessageHandler Interface

Definition

The contract for sending and receiving JSON-RPC messages.

public interface IJsonRpcMessageHandler
type IJsonRpcMessageHandler = interface
Public Interface IJsonRpcMessageHandler
Derived

Properties

CanRead

Gets a value indicating whether this message handler can receive messages.

CanWrite

Gets a value indicating whether this message handler can send messages.

Formatter

Gets the formatter used for message serialization.

Methods

ReadAsync(CancellationToken)

Reads a distinct and complete message from the transport, waiting for one if necessary.

WriteAsync(JsonRpcMessage, CancellationToken)

Writes a JSON-RPC message to the transport and flushes.

Applies to