OAuthPrompt.RecognizeTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
DialogContext.
- cancellationToken
- CancellationToken
CancellationToken.
Returns
PromptRecognizerResult.