Share via


ActivityHandler.OnTokenResponseEventAsync Method

Definition

Invoked when a tokens/response event is received If using an OAuthPrompt, override this method to forward this Activity forward the incoming Activity to OAuthFlow.ContinueFlowAsync. By default, this method does nothing.

protected virtual System.Threading.Tasks.Task OnTokenResponseEventAsync(Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IEventActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTokenResponseEventAsync : Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTokenResponseEventAsync : Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTokenResponseEventAsync (turnContext As ITurnContext(Of IEventActivity), cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext<IEventActivity>

A strongly-typed context object for this turn.

cancellationToken
CancellationToken

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

Returns

A task that represents the work queued to execute.

Applies to

See also