Share via


StreamingConnection.SendStreamingRequestAsync Method

Definition

Sends a streaming request through the connection.

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

Parameters

request
StreamingRequest

StreamingRequest to be sent.

cancellationToken
CancellationToken

CancellationToken to cancel the send process.

Returns

The ReceiveResponse returned from the client.

Applies to