Share via


OAuthFlow.ContinueFlowAsync(ITurnContext, DateTime, CancellationToken) Method

Definition

Called when a prompt dialog is the active dialog and the user replied with a new activity.

public virtual System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse> ContinueFlowAsync(Microsoft.Agents.Builder.ITurnContext turnContext, DateTime expires, System.Threading.CancellationToken cancellationToken);
abstract member ContinueFlowAsync : Microsoft.Agents.Builder.ITurnContext * DateTime * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse>
override this.ContinueFlowAsync : Microsoft.Agents.Builder.ITurnContext * DateTime * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse>
Public Overridable Function ContinueFlowAsync (turnContext As ITurnContext, expires As DateTime, cancellationToken As CancellationToken) As Task(Of TokenResponse)

Parameters

turnContext
ITurnContext

The ITurnContext for the current turn of conversation.

expires
DateTime

The DateTime the exchange expires. Typically this would be stored after the BeginFlowAsync and used here.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A TokenResponseThe token response.

Exceptions

Remarks

If successful, the result indicates whether the exchange is still active after the turn has been processed.

The prompt generally continues to receive the user's replies until it accepts the user's reply as valid input for the prompt.

Applies to