Jaa


WebSocketServer.SendAsync(StreamingRequest, CancellationToken) Method

Definition

Task used to send data over this server connection. Throws InvalidOperationException if called when server is not connected. Throws ArgumentNullException if request is null.

public System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse> SendAsync (Microsoft.Bot.Streaming.StreamingRequest request, System.Threading.CancellationToken cancellationToken = default);
abstract member SendAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
override this.SendAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
Public Function SendAsync (request As StreamingRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReceiveResponse)

Parameters

request
StreamingRequest

The StreamingRequest to send.

cancellationToken
CancellationToken

Optional CancellationToken used to signal this operation should be cancelled.

Returns

A Task of type ReceiveResponse handling the send operation.

Implements

Applies to