RetryAction.RunAsync<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts the retry of the action requested.
public static System.Threading.Tasks.Task<TResult> RunAsync<TResult> (Func<System.Threading.Tasks.Task<TResult>> task, Func<Exception,int,Microsoft.Bot.Connector.Authentication.RetryParams> retryExceptionHandler);
static member RunAsync : Func<System.Threading.Tasks.Task<'Result>> * Func<Exception, int, Microsoft.Bot.Connector.Authentication.RetryParams> -> System.Threading.Tasks.Task<'Result>
Public Shared Function RunAsync(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
- retryExceptionHandler
- Func<Exception,Int32,RetryParams>
A reference to the method that handles exceptions.
Returns
Task<TResult>
A result object.