Retry.Run<TResult>(Func<Task<TResult>>, Func<Exception,Int32,RetryParams>) 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.
public static System.Threading.Tasks.Task<TResult> Run<TResult> (Func<System.Threading.Tasks.Task<TResult>> task, Func<Exception,int,Microsoft.Bot.Connector.Shared.Authentication.RetryParams> retryExceptionHandler);
static member Run : Func<System.Threading.Tasks.Task<'Result>> * Func<Exception, int, Microsoft.Bot.Connector.Shared.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
Parameters
- retryExceptionHandler
- Func<Exception,Int32,RetryParams>
Returns
- Task<TResult>