WebexAdapter.SendActivitiesAsync 方法

定义

标准 BotBuilder 适配器方法,用于将消息从机器人发送到消息传送 API。

public override System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]> SendActivitiesAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.Activity[] activities, System.Threading.CancellationToken cancellationToken);
override this.SendActivitiesAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse[]>
Public Overrides Function SendActivitiesAsync (turnContext As ITurnContext, activities As Activity(), cancellationToken As CancellationToken) As Task(Of ResourceResponse())

参数

turnContext
ITurnContext

一个代表当前传入消息和环境的 TurnContext。

activities
Activity[]

要发送回消息 API 的传出活动的数组。

cancellationToken
CancellationToken

任务的取消令牌。

返回

表示异步操作的 Task

适用于