語言

BotFrameworkAuthentication.AuthenticateStreamingRequestAsync 方法

定義

驗證 Bot Framework 通訊協定要求。

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

參數

authHeader
String

http 認證標頭。

channelIdHeader
String

通道標識碼 HTTP 標頭。

cancellationToken
CancellationToken

取消令牌。

傳回

非同步任務 。AuthenticateRequestResult

例外狀況

如果驗證結果為假。

適用於