NextDelegate Delegate

Definition

Encapsulates an asynchronous method that calls the next IMiddleware.OnTurnAsync(ITurnContext, NextDelegate, CancellationToken) or IBot.OnTurnAsync(ITurnContext, CancellationToken) method in the middleware pipeline.

public delegate System.Threading.Tasks.Task NextDelegate(CancellationToken cancellationToken);
type NextDelegate = delegate of CancellationToken -> Task
Public Delegate Function NextDelegate(cancellationToken As CancellationToken) As Task 

Parameters

cancellationToken
CancellationToken

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

Return Value

A task that represents the work queued to execute.

Applies to