Lingua

NextDelegate Delegato

Definizione

Racchiude un metodo asincrono che chiama il prossimo IMiddlewaremetodo .OnTurnAsync(ITurnContext, NextDelegate, CancellationToken) o IBot.OnTurnAsync(ITurnContext, CancellationToken) nella pipeline middleware.

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

Parametri

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valore restituito

Attività che rappresenta il lavoro in coda da eseguire.

Si applica a