Share via


ExponentialRetryPolicy.ShouldRetry(Int32, Exception) Method

Definition

Determines whether to retry exponentially.

public override bool ShouldRetry (int httpCode, Exception ex);
override this.ShouldRetry : int * Exception -> bool
Public Overrides Function ShouldRetry (httpCode As Integer, ex As Exception) As Boolean

Parameters

httpCode
Int32

Http status code

ex
Exception

Last exception that we saw during Httprequest

Returns

True if it should be retried else false

Applies to