Udostępnij przez


StreamingTransportClient.SendAsync Metoda

Definicja

Zadanie używane do wysyłania danych za pośrednictwem tego połączenia 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

Element do wysłania StreamingRequest .

cancellationToken
CancellationToken

Opcjonalny CancellationToken element używany do sygnalizowania tej operacji powinien zostać anulowany.

Zwraca

ReceiveResponse Typ Task obsługujący operację wysyłania.

Implementuje

Dotyczy