RetryPolicy.OnRetrying Method
Notifies the subscribers whenever a retry condition is encountered.
Namespace: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling (in Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
protected virtual void OnRetrying(
int retryCount,
Exception lastError,
TimeSpan delay
)
'Declaration
Protected Overridable Sub OnRetrying (
retryCount As Integer,
lastError As Exception,
delay As TimeSpan
)
protected:
virtual void OnRetrying(
int retryCount,
Exception^ lastError,
TimeSpan delay
)
Parameters
- retryCount
Type: System.Int32
The current retry attempt count.
- lastError
Type: System.Exception
The exception that caused the retry conditions to occur.
- delay
Type: System.TimeSpan
The delay that indicates how long the current thread will be suspended before the next iteration is invoked.
See Also
Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace