Delegate ShouldRetry
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
Namespace: Umbraco.Cms.Infrastructure.Persistence.FaultHandling
Assembly: cs.temp.dll.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. |