StreamingRequestHandler.SendActivityAsync(Activity, CancellationToken) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Wandelt ein Activity in a StreamingRequest um und sendet es an den Kanal, mit dem dieser StreamingRequestHandler verbunden ist.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendActivityAsync(Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
abstract member SendActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
override this.SendActivityAsync : Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Public Overridable Function SendActivityAsync (activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameter
- activity
- Activity
Die zu sendende Aktivität.
- cancellationToken
- CancellationToken
Ein Abbruchtoken.
Gibt zurück
Eine Aufgabe, die sich zu einem auflöst ResourceResponse.