Delegate ShouldRetry
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
Namespace: Umbraco.Core.Persistence.FaultHandling
Assembly: Umbraco.Core.dll
Syntax
public delegate bool ShouldRetry(int retryCount, Exception lastException, out TimeSpan delay);
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retryCount | The current retry attempt count. |
System.Exception | lastException | The exception which caused the retry conditions to occur. |
System.TimeSpan | delay | The delay indicating how long the current thread will be suspended for before the next iteration will be invoked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a callback delegate that will be invoked whenever to retry should be attempt. |