語言

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

例外狀況

如果驗證結果為假。

適用於