AbstractWebServiceClient.ShouldRetry Method (HttpStatusCode, ClientConfig, AmazonServiceException, int)

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Returns true if a failed request should be retried.

Namespace: Amazon.Runtime
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
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

Return Value
Type: System.Boolean
True if the failed request should be retried.

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