public override int Read(Span<byte> destination) { Http2Stream http2Stream = _http2Stream ?? throw new ObjectDisposedException(nameof(Http2ReadStream)); if (http2Stream._abortException != null) { throw new IOException(SR.net_http_client_execution_error, http2Stream._abortException); } return http2Stream.ReadData(destination, CancellationToken.None); }
public override int Read(Span <byte> destination) { Http2Stream http2Stream = _http2Stream ?? throw new ObjectDisposedException(nameof(Http2ReadStream)); if (http2Stream._abortException != null) { ExceptionDispatchInfo.Throw(new IOException(SR.net_http_client_execution_error, http2Stream._abortException)); } return(http2Stream.ReadData(destination)); }
public override int Read(Span <byte> destination) { Http2Stream http2Stream = _http2Stream ?? throw new ObjectDisposedException(nameof(Http2ReadStream)); return(http2Stream.ReadData(destination)); }