Specialized write-only stream used for submitting a chunk of a large upload to a FileSystem.
Name | Description | |
---|---|---|
UploadStream |
Initializes a new instance of the UploadStream class. |
Name | Description | |
---|---|---|
CommitAsync(System.Threading.CancellationToken cancellationToken) |
Called when the chunk is complete. The BytesWritten property must be accurate after this returns. |
|
Flush | ||
IncrementBytesWritten(long count) |
Adds the specified count to the value of the BytesWritten property. |
|
Read(byte[] buffer, int offset, int count) | ||
Seek(long offset, System.IO.SeekOrigin origin) | ||
SetLength(long value) |
Implementers must call the IncrementBytesWritten(long count) method whenever data is written in any of the Write method overrides.