Returns true if a failed request should be retried.
Declaration Syntax
C# |
public static bool ShouldRetry( HttpStatusCode statusCode, ClientConfig config, AmazonServiceException errorResponseException, int retries )
Parameters
- statusCode (HttpStatusCode)
- The HTTP status code from the failed request
- config (ClientConfig)
- The client config
- errorResponseException (AmazonServiceException)
- The exception from the failed request
- retries (Int32)
- The number of times the current request has been attempted
Return Value
True if the failed request should be retried.