C# 클래스 Amazon.EC2.Import.ImageFileParts

파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FetchNextPartForUpload ImageFilePart
RegisterUploadFailure void

공개 메소드들

메소드 설명
ImageFileParts ( ) : System

Initializes an empty collection of parts

비공개 메소드들

메소드 설명
FetchNextPartForUpload ( Stream imageFileStream, byte &buffer ) : ImageFilePart

Returns the next part to be uploaded, with its data loaded into the supplied buffer.

We want to serialize read access to the image file stream so that we do not 'thrash' or encounter problems with a non-seekable stream, but at the same time parallelize the part uploads. Reading the data prior to returning the part instance data satisfies this requirement.If an error occurs during a part upload, we currently cease yielding parts to all workers, causing them to expire cleanly 'asap'. This strategy allows us to change to a 'greedy' approach in future where we simply skip over the part in error and do as much uploading as we can before exit.

RegisterUploadFailure ( ) : void

Allows the upload threadpool workers to register that one or more parts failed to upload successfully.

메소드 상세

ImageFileParts() 공개 메소드

Initializes an empty collection of parts
public ImageFileParts ( ) : System
리턴 System