OrleansRelationalDownloadStream.ReadAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads the stream.
public override System.Threading.Tasks.Task<int> ReadAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);
override this.ReadAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Overrides Function ReadAsync (buffer As Byte(), offset As Integer, count As Integer, cancellationToken As CancellationToken) As Task(Of Integer)
Parameters
- buffer
- Byte[]
The buffer to read to.
- offset
- Int32
The offset to the buffer to stat reading.
- count
- Int32
The count of bytes to read to.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The number of actual bytes read from the stream.