Jaa


OAuthPrompt.RecognizeTokenAsync Method

Definition

Shared implementation of the RecognizeTokenAsync function. This is intended for internal use, to consolidate the implementation of the OAuthPrompt and OAuthInput. Application logic should use those dialog classes.

public static System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.PromptRecognizerResult<Microsoft.Bot.Schema.TokenResponse>> RecognizeTokenAsync (Microsoft.Bot.Builder.Dialogs.OAuthPromptSettings settings, Microsoft.Bot.Builder.Dialogs.DialogContext dc, System.Threading.CancellationToken cancellationToken);
static member RecognizeTokenAsync : Microsoft.Bot.Builder.Dialogs.OAuthPromptSettings * Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.PromptRecognizerResult<Microsoft.Bot.Schema.TokenResponse>>
Public Shared Function RecognizeTokenAsync (settings As OAuthPromptSettings, dc As DialogContext, cancellationToken As CancellationToken) As Task(Of PromptRecognizerResult(Of TokenResponse))

Parameters

settings
OAuthPromptSettings

OAuthPromptSettings.

dc
DialogContext

DialogContext.

cancellationToken
CancellationToken

CancellationToken.

Returns

PromptRecognizerResult.

Applies to