Delen via


BotFrameworkHttpAdapterBase.SendStreamingActivityAsync Methode

Definitie

Hiermee wordt een activiteit verzonden.

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)

Parameters

activity
Activity

>De Activity te verzenden.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.

Retouren

Een taak die de asynchrone bewerking vertegenwoordigt.

Opmerkingen

Als de taak is voltooid, bevat het resultaat een antwoordobject van de resource.

Van toepassing op