C# Class Amazon.Runtime.Internal.DefaultRetryPolicy

The default implementation of the retry policy.
Inheritance: RetryPolicy
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
RetryForExceptionAsync ( IExecutionContext executionContext, Exception exception ) : Task

Return true if the request should be retried.

WaitBeforeRetryAsync ( IExecutionContext executionContext ) : System.Threading.Tasks.Task

Waits before retrying a request.

Method Details

RetryForExceptionAsync() public method

Return true if the request should be retried.
public RetryForExceptionAsync ( IExecutionContext executionContext, Exception exception ) : Task
executionContext IExecutionContext Request context containing the state of the request.
exception System.Exception The exception thrown by the previous request.
return Task

WaitBeforeRetryAsync() public method

Waits before retrying a request.
public WaitBeforeRetryAsync ( IExecutionContext executionContext ) : System.Threading.Tasks.Task
executionContext IExecutionContext The execution context which contains both the /// requests and response context.
return System.Threading.Tasks.Task