Share via


NonIdempotentRetryPolicy.ShouldRetry(Int32, Exception) Method

Definition

Returns true when http status is 429 - too many requests

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

HttpStatus

ex
Exception

Exception

Returns

True if request needs to retry else false

Applies to