BotFrameworkAuthentication.AuthenticateRequestAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證 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。