Reads all bytes from the stream.
public static Task<byte[]> ReadAllBytesAsync(this Stream stream,
CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| stream | The stream. |
| cancellationToken | The cancellation token. |
An array of all bytes read from the stream.