IJsonRpcMessageHandler Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |