Method Begin
Begin(int, int, int)
Begins a new upload frame and returns a new ThreadedSparseUploader that is valid until the next call to SparseUploader.EndAndCommit.
Declaration
public ThreadedSparseUploader Begin(int maxDataSizeInBytes, int biggestDataUpload, int maxOperationCount)
Parameters
Type | Name | Description |
---|---|---|
int | maxDataSizeInBytes | An upper bound of total data size that you want to upload this frame. |
int | biggestDataUpload | The size of the largest upload operation that will occur. |
int | maxOperationCount | An upper bound of the total number of upload operations that will occur this frame. |
Returns
Type | Description |
---|---|
ThreadedSparseUploader | Returns a new ThreadedSparseUploader that must be passed to SparseUploader.EndAndCommit later. |
Remarks
You must follow this method with a call to SparseUploader.EndAndCommit later in the frame. You must also pass the returned value from a Begin method to the next SparseUploader.EndAndCommit.