RetryPolicy.OnRetrying Method (Int32, Exception, TimeSpan)
Notifies the subscribers whenever a retry condition is encountered.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
protected virtual void OnRetrying(
int retryCount,
Exception lastError,
TimeSpan delay
)
protected:
virtual void OnRetrying(
int retryCount,
Exception^ lastError,
TimeSpan delay
)
abstract OnRetrying :
retryCount:int *
lastError:Exception *
delay:TimeSpan -> unit
override OnRetrying :
retryCount:int *
lastError:Exception *
delay:TimeSpan -> unit
Protected Overridable Sub OnRetrying (
retryCount As Integer,
lastError As Exception,
delay As TimeSpan
)
Parameters
retryCount
Type: System.Int32The current retry attempt count.
lastError
Type: System.ExceptionThe exception that caused the retry conditions to occur.
delay
Type: System.TimeSpanThe delay that indicates how long the current thread will be suspended before the next iteration is invoked.
See Also
RetryPolicy Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace
Return to top