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