Jaa


Retry.Run<TResult> Method

Definition

Starts the retry of the action requested.

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)

Type Parameters

TResult

The result expected from the action performed.

Parameters

task
Func<Task<TResult>>

A reference to the action to retry.

retryExceptionHandler
Func<Exception,Int32,RetryParams>

A reference to the method that handles exceptions.

Returns

Task<TResult>

A result object.

Applies to