Share via


WebSocketMessageHandler.WriteCoreAsync Method

Definition

Overloads

WriteCoreAsync(JsonRpcMessage, CancellationToken)

Writes a message.

WriteCoreAsync(String, Encoding, CancellationToken)

Writes a message to the stream.

WriteCoreAsync(JsonRpcMessage, CancellationToken)

Writes a message.

protected override System.Threading.Tasks.ValueTask WriteCoreAsync (StreamJsonRpc.Protocol.JsonRpcMessage content, System.Threading.CancellationToken cancellationToken);
override this.WriteCoreAsync : StreamJsonRpc.Protocol.JsonRpcMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected Overrides 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.

Applies to

WriteCoreAsync(String, Encoding, CancellationToken)

Writes a message to the stream.

protected override System.Threading.Tasks.Task WriteCoreAsync (string content, System.Text.Encoding contentEncoding, System.Threading.CancellationToken cancellationToken);
override this.WriteCoreAsync : string * System.Text.Encoding * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function WriteCoreAsync (content As String, contentEncoding As Encoding, cancellationToken As CancellationToken) As Task

Parameters

content
String

The message to write.

contentEncoding
Encoding

The encoding to use for content.

cancellationToken
CancellationToken

A token to cancel the transmission.

Returns

A task that represents the asynchronous write operation.

Applies to