C# Class Amazon.S3.Transfer.Internal.DownloadCommand

Inheritance: BaseCommand
Show file Open project: aws/aws-sdk-net Class Usage Examples

Private Properties

Property Type Description
ByteRangeRemainingForDownload Amazon.S3.Model.ByteRange
ByteRangeRemainingForDownloadAsync Task
DownloadCommand System
HandleException bool
HandleExceptionForHttpClient bool
OnWriteObjectProgressEvent void
ValidateRequest void
WaitBeforeRetry void

Public Methods

Method Description
ExecuteAsync ( CancellationToken cancellationToken ) : Task

Private Methods

Method Description
ByteRangeRemainingForDownload ( string filepath ) : Amazon.S3.Model.ByteRange

Returns the amount of bytes remaining that need to be pulled down from S3.

ByteRangeRemainingForDownloadAsync ( string filepath ) : Task

Returns the amount of bytes remaining that need to be pulled down from S3.

DownloadCommand ( IAmazonS3 s3Client, TransferUtilityDownloadRequest request ) : System
HandleException ( Exception exception, int retries, int maxRetries ) : bool
HandleExceptionForHttpClient ( Exception exception, int retries, int maxRetries ) : bool
OnWriteObjectProgressEvent ( object sender, WriteObjectProgressArgs e ) : void
ValidateRequest ( ) : void
WaitBeforeRetry ( int retries ) : void

Method Details

ExecuteAsync() public method

public ExecuteAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task