Sdílet prostřednictvím


StreamingTransportClient.SendAsync Metoda

Definice

Úloha použitá k odesílání dat přes toto připojení klienta

public System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse> SendAsync (Microsoft.Bot.Streaming.StreamingRequest message, 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 (message As StreamingRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReceiveResponse)

Parametry

message
StreamingRequest

Chcete-li StreamingRequest odeslat.

cancellationToken
CancellationToken

Volitelná CancellationToken používaná k signalizaci této operace by měla být zrušena.

Návraty

Typ A Task , který ReceiveResponse zpracovává operaci odeslání.

Implementuje

Platí pro