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异步任务。

例外

如果验证返回 false。

适用于