Property | Type | Description | |
---|---|---|---|
GetRangesRemaining | long>>.List | ||
NextChunkSize | int |
Method | Description | |
---|---|---|
ChunkedUploadProvider ( UploadSession session, IBaseClient client, Stream uploadStream, int maxChunkSize = -1 ) : Microsoft.Graph |
Helps with resumable uploads. Generates chunk requests based on session information, and can control uploading of requests using client
|
|
DeleteSession ( ) : System.Threading.Tasks.Task |
Delete the session.
|
|
GetChunkRequestResponseAsync ( UploadChunkRequest request, byte readBuffer, ICollection |
||
GetUploadChunkRequests ( IEnumerable options = null ) : IEnumerable |
Get the series of requests needed to complete the upload session. Call UpdateSessionStatusAsync first to update the internal session information.
|
|
UpdateSessionStatusAsync ( ) : Task |
Get the status of the session. Stores returned session internally. Updates internal list of ranges remaining to be uploaded (according to the server).
|
|
UploadAsync ( int maxTries = 3, IEnumerable options = null ) : Task |
Upload the whole session.
|
Method | Description | |
---|---|---|
GetRangesRemaining ( UploadSession session ) : long>>.List |
||
NextChunkSize ( long rangeBegin, long rangeEnd ) : int |
public ChunkedUploadProvider ( UploadSession session, IBaseClient client, Stream uploadStream, int maxChunkSize = -1 ) : Microsoft.Graph | ||
session | UploadSession | Session information. |
client | IBaseClient | Client used to upload chunks. |
uploadStream | Stream | Readable, seekable stream to be uploaded. Length of session is determined via uploadStream.Length |
maxChunkSize | int | Max size of each chunk to be uploaded. Multiple of 320 KiB (320 * 1024) is required. /// If less than 0, default value of 5 MiB is used. . |
return | Microsoft.Graph |
public DeleteSession ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public GetChunkRequestResponseAsync ( UploadChunkRequest request, byte readBuffer, ICollection |
||
request | UploadChunkRequest | |
readBuffer | byte | |
exceptionTrackingList | ICollection |
|
return | Task |
public GetUploadChunkRequests ( IEnumerable options = null ) : IEnumerable |
||
options | IEnumerable | Options to be applied to each request. |
return | IEnumerable |
public UploadAsync ( int maxTries = 3, IEnumerable options = null ) : Task |
||
maxTries | int | Number of times to retry entire session before giving up. |
options | IEnumerable | |
return | Task |