Dela via


BotFrameworkAuthentication.AuthenticateRequestAsync Metod

Definition

Verifiera Begäranden om Bot Framework Protocol.

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)

Parametrar

activity
Activity

Den inkommande aktiviteten.

authHeader
String

Http-autentiseringshuvudet.

cancellationToken
CancellationToken

En annulleringstoken.

Returer

Asynkron aktivitet med AuthenticateRequestResult.

Undantag

Om valideringen returnerar falskt.

Gäller för