语言

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

通道 ID HTTP 标头。

cancellationToken
CancellationToken

取消令牌。

返回

异步任务 。AuthenticateRequestResult

例外

如果验证结果为假。

适用于