RetryManager.InvokeWithRetryAsync 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.
Overloads
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
- 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
- cancellationToken
- CancellationToken
- menberName
- String
- sourceFilePath
- String
- sourceLineNumber
- Int32
Returns
Task<T>
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for