View Source
Class DelegateExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class DelegateExtensions
Methods
View Source
RetryUntilSuccessOrMaxAttempts<T>(Func<Int32, Attempt<T>>, Int32, TimeSpan)
Declaration
public static Attempt<T> RetryUntilSuccessOrMaxAttempts<T>(this Func<int, Attempt<T>> task, int totalAttempts, TimeSpan pause)
Parameters
Type |
Name |
Description |
System.Func<System.Int32, Attempt<T>> |
task |
|
System.Int32 |
totalAttempts |
|
System.TimeSpan |
pause |
|
Returns
Type Parameters
View Source
RetryUntilSuccessOrTimeout<T>(Func<Attempt<T>>, TimeSpan, TimeSpan)
Declaration
public static Attempt<T> RetryUntilSuccessOrTimeout<T>(this Func<Attempt<T>> task, TimeSpan timeout, TimeSpan pause)
Parameters
Type |
Name |
Description |
System.Func<Attempt<T>> |
task |
|
System.TimeSpan |
timeout |
|
System.TimeSpan |
pause |
|
Returns
Type Parameters