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 非同步工作。

例外狀況

如果驗證傳回 false。

適用於