Compartir a través de


BotFrameworkAuthentication.AuthenticateStreamingRequestAsync Método

Definición

Valide las solicitudes de Protocolo de 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)

Parámetros

authHeader
String

Encabezado de autenticación http.

channelIdHeader
String

Encabezado HTTP del identificador de canal.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Tarea asincrónica con AuthenticateRequestResult.

Excepciones

Si la validación devuelve false.

Se aplica a