Langue

Retry.Run<TResult> Méthode

Définition

Commence la réévaluation de l’action demandée.

public static System.Threading.Tasks.Task<TResult> Run<TResult>(Func<System.Threading.Tasks.Task<TResult>> task, Func<Exception,int,Microsoft.Bot.Connector.Authentication.RetryParams> retryExceptionHandler);
static member Run : Func<System.Threading.Tasks.Task<'Result>> * Func<Exception, int, Microsoft.Bot.Connector.Authentication.RetryParams> -> System.Threading.Tasks.Task<'Result>
Public Shared Function Run(Of TResult) (task As Func(Of Task(Of TResult)), retryExceptionHandler As Func(Of Exception, Integer, RetryParams)) As Task(Of TResult)

Paramètres de type

TResult

Le résultat attendu de l’action réalisée.

Paramètres

task
Func<Task<TResult>>

Une référence à l’action à reessayer.

retryExceptionHandler
Func<Exception,Int32,RetryParams>

Une référence à la méthode qui gère les exceptions.

Retours

Task<TResult>

Un objet résultat.

S’applique à