C# Class Microsoft.OneDrive.Sdk.UploadChunkRequest

The type UploadChunkRequest.
Inheritance: BaseRequest, IUploadChunkRequest
ファイルを表示 Open project: OneDrive/onedrive-sdk-csharp

Public Methods

Method Description
PutAsync ( Stream stream ) : Task

Uploads the chunk using PUT.

PutAsync ( Stream stream, CancellationToken cancellationToken ) : Task

Uploads the chunk using PUT.

UploadChunkRequest ( string sessionUrl, IBaseClient client, IEnumerable options, long rangeBegin, long rangeEnd, long totalSessionLength ) : System.Linq

Request for uploading one chunk of a session

Private Methods

Method Description
SendRequestAsync ( Stream stream, CancellationToken cancellationToken, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead ) : Task

Method Details

PutAsync() public method

Uploads the chunk using PUT.
public PutAsync ( Stream stream ) : Task
stream Stream
return Task

PutAsync() public method

Uploads the chunk using PUT.
public PutAsync ( Stream stream, CancellationToken cancellationToken ) : Task
stream Stream Stream of data to be sent in the request. Length must be equal to the length /// of this chunk (as defined by this.RangeLength)
cancellationToken System.Threading.CancellationToken The cancellation token
return Task

UploadChunkRequest() public method

Request for uploading one chunk of a session
public UploadChunkRequest ( string sessionUrl, IBaseClient client, IEnumerable options, long rangeBegin, long rangeEnd, long totalSessionLength ) : System.Linq
sessionUrl string URL to upload the chunk.
client IBaseClient Client used for sending the chunk.
options IEnumerable Options
rangeBegin long Beginning of range of this chunk
rangeEnd long End of range of this chunk
totalSessionLength long Total session length. This MUST be consistent /// across all chunks.
return System.Linq