Share via


SkypeMentionNormalizeMiddleware.OnTurnAsync Method

Definition

Middleware implementation which corrects Enity.Mention.Text to a value RemoveMentionText can work with.

public System.Threading.Tasks.Task OnTurnAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.NextDelegate next, System.Threading.CancellationToken cancellationToken = default);
abstract member OnTurnAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.NextDelegate * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTurnAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.NextDelegate * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnTurnAsync (turnContext As ITurnContext, next As NextDelegate, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

turnContext
ITurnContext

turn context.

next
NextDelegate

next middleware.

cancellationToken
CancellationToken

cancellationToken.

Returns

A Task representing the asynchronous operation.

Implements

Applies to