C# Класс Amazon.EC2.Import.ImageFileParts

Показать файл Открыть проект Примеры использования класса

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