Lingua

StreamingTransportClient.SendAsync Metodo

Definizione

Attività usata per inviare dati tramite questa connessione client.

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)

Parametri

message
StreamingRequest

Oggetto StreamingRequest da inviare.

cancellationToken
CancellationToken

Un optional CancellationToken usato per segnalare questa operazione dovrebbe essere annullato.

Valori restituiti

A di tipo ReceiveResponse gestisce Task l'operazione di invio.

Implementazioni

Si applica a