Returns true if a failed request should be retried.
Namespace: Amazon.Runtime
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public Boolean ShouldRetry(
HttpStatusCode statusCode,
ClientConfig config,
AmazonServiceException errorResponseException,
Int32 retries
)
Parameters
- statusCode
-
Type: System.Net.HttpStatusCode
The HTTP status code from the failed request
- config
-
Type: Amazon.Runtime.ClientConfig
The client config
- errorResponseException
-
Type: Amazon.Runtime.AmazonServiceException
The exception from the failed request
- retries
-
Type: System.Int32
The number of times the current request has been attempted
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8