Beispiel #1
0
                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);
                }
Beispiel #2
0
                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));
                }
Beispiel #3
0
                public override int Read(Span <byte> destination)
                {
                    Http2Stream http2Stream = _http2Stream ?? throw new ObjectDisposedException(nameof(Http2ReadStream));

                    return(http2Stream.ReadData(destination));
                }