语言

BotFrameworkAuthentication.AuthenticateRequestAsync 方法

定义

验证 Bot Framework 协议请求。

public abstract System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult> AuthenticateRequestAsync(Microsoft.Bot.Schema.Activity activity, string authHeader, System.Threading.CancellationToken cancellationToken);
abstract member AuthenticateRequestAsync : Microsoft.Bot.Schema.Activity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult>
Public MustOverride Function AuthenticateRequestAsync (activity As Activity, authHeader As String, cancellationToken As CancellationToken) As Task(Of AuthenticateRequestResult)

参数

activity
Activity

入站活动。

authHeader
String

http 认证头。

cancellationToken
CancellationToken

取消令牌。

返回

异步任务 。AuthenticateRequestResult

例外

如果验证结果为假。

适用于