StreamingRequestHandler.SendActivityAsync(Activity, CancellationToken) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Zet een Activity om in a StreamingRequest en stuurt het naar het kanaal waarmee deze StreamingRequestHandler is verbonden.
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)
Parameters
- activity
- Activity
De activiteit om te sturen.
- cancellationToken
- CancellationToken
Een annuleringstoken.
Retouren
Een taak die oplost tot een ResourceResponse.