WrappingStream.CopyToAsync method

Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.

public override Task CopyToAsync(Stream destination, int bufferSize, 
    CancellationToken cancellationToken)

See Also