MessageHandlerBase.WriteCoreAsync(JsonRpcMessage, CancellationToken) Method
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.
Writes a message.
protected abstract System.Threading.Tasks.ValueTask WriteCoreAsync (StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken);
abstract member WriteCoreAsync : StreamJsonRpc.Protocol.JsonRpcMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected MustOverride Function WriteCoreAsync (content As JsonRpcMessage, cancellationToken As CancellationToken) As ValueTask
Parameters
- content
- JsonRpcMessage
The message to write.
- cancellationToken
- CancellationToken
A token to cancel the transmission.
Returns
A task that represents the asynchronous write operation.