Share via


PipeMessageHandler.Write(JsonRpcMessage, CancellationToken) Method

Definition

Writes a message to the pipe.

protected abstract void Write (StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken);
abstract member Write : StreamJsonRpc.Protocol.JsonRpcMessage * System.Threading.CancellationToken -> unit
Protected MustOverride Sub Write (content As JsonRpcMessage, cancellationToken As CancellationToken)

Parameters

content
JsonRpcMessage

The message to write.

cancellationToken
CancellationToken

A token to cancel the transmission.

Remarks

Implementations may assume the method is never called before the previous call has completed. They can assume their caller will invoke FlushAsync(CancellationToken) on their behalf after writing is completed.

Applies to