Edit

Share via


RetryManager.InvokeWithRetryAsync Method

Definition

Overloads

InvokeWithRetryAsync(Func<Task>, Func<Exception,Boolean>, CancellationToken, String, String, Int32)
InvokeWithRetryAsync<T>(Func<Task<T>>, Func<Exception,Boolean>, CancellationToken, String, String, Int32)

InvokeWithRetryAsync(Func<Task>, Func<Exception,Boolean>, CancellationToken, String, String, Int32)

public System.Threading.Tasks.Task InvokeWithRetryAsync (Func<System.Threading.Tasks.Task> action, Func<Exception,bool> exPredicate, System.Threading.CancellationToken cancellationToken = null, string menberName = "", string sourceFilePath = "", int sourceLineNumber = 0);
member this.InvokeWithRetryAsync : Func<System.Threading.Tasks.Task> * Func<Exception, bool> * System.Threading.CancellationToken * string * string * int -> System.Threading.Tasks.Task

Parameters

action
Func<Task>
exPredicate
Func<Exception,Boolean>
cancellationToken
CancellationToken
menberName
String
sourceFilePath
String
sourceLineNumber
Int32

Returns

Applies to

InvokeWithRetryAsync<T>(Func<Task<T>>, Func<Exception,Boolean>, CancellationToken, String, String, Int32)

public System.Threading.Tasks.Task<T> InvokeWithRetryAsync<T> (Func<System.Threading.Tasks.Task<T>> function, Func<Exception,bool> exPredicate, System.Threading.CancellationToken cancellationToken = null, string menberName = "", string sourceFilePath = "", int sourceLineNumber = 0);
member this.InvokeWithRetryAsync : Func<System.Threading.Tasks.Task<'T>> * Func<Exception, bool> * System.Threading.CancellationToken * string * string * int -> System.Threading.Tasks.Task<'T>

Type Parameters

T

Parameters

function
Func<Task<T>>
exPredicate
Func<Exception,Boolean>
cancellationToken
CancellationToken
menberName
String
sourceFilePath
String
sourceLineNumber
Int32

Returns

Task<T>

Applies to