TeamsActivityHandler.OnTeamsMeetingEndAsync 方法

定义

从连接器收到 Teams 会议结束事件活动时调用。 在派生类中重写此项,以提供会议何时结束的逻辑。

protected virtual System.Threading.Tasks.Task OnTeamsMeetingEndAsync (Microsoft.Bot.Schema.Teams.MeetingEndEventDetails meeting, Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMeetingEndAsync : Microsoft.Bot.Schema.Teams.MeetingEndEventDetails * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsMeetingEndAsync : Microsoft.Bot.Schema.Teams.MeetingEndEventDetails * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsMeetingEndAsync (meeting As MeetingEndEventDetails, turnContext As ITurnContext(Of IEventActivity), cancellationToken As CancellationToken) As Task

参数

meeting
MeetingEndEventDetails

会议的详细信息。

turnContext
ITurnContext<IEventActivity>

此轮次的强类型上下文对象。

cancellationToken
CancellationToken

可由其他对象或线程用以接收取消通知的取消标记。

返回

一个任务,表示排队要执行的工作。

适用于