RetryPolicy.OnRetrying Method
Retired Content |
---|
This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling. |
Notifies the subscribers whenever a retry condition is encountered.
Namespace: Microsoft.Practices.TransientFaultHandling
Assembly: Microsoft.Practices.TransientFaultHandling.Core (in Microsoft.Practices.TransientFaultHandling.Core.dll) Version: 5.0.1118.0 (5.0.1118.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 which caused the retry conditions to occur.
- delay
Type: System.TimeSpan
The delay indicating how long the current thread will be suspended for before the next iteration will be invoked.