Freigeben über


BotFrameworkHttpAdapterBase.SendStreamingActivityAsync Methode

Definition

Sendet eine Aktivität.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendStreamingActivityAsync (Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
member this.SendStreamingActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Public Function SendStreamingActivityAsync (activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parameter

activity
Activity

>Der Activity zu sendende.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

Eine Aufgabe, die den asynchronen Vorgang darstellt.

Hinweise

Wenn die Aufgabe erfolgreich abgeschlossen wurde, enthält das Ergebnis ein Ressourcenantwortobjekt.

Gilt für: