Edytuj

Udostępnij za pośrednictwem


OrleansRelationalDownloadStream.ReadAsync Method

Definition

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.

Applies to