From 5901fee80c6f58cd6ef184707f5c96921c0f14b1 Mon Sep 17 00:00:00 2001 From: Geoff Kizer Date: Tue, 2 Jul 2019 17:25:06 -0700 Subject: [PATCH] address feedback Commit migrated from https://github.com/dotnet/corefx/commit/490593ffa52cd818a8c0ebeb5298b48b3844237b --- .../src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs | 2 ++ .../src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs | 2 +- .../src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs index 1769d32..afd3b18 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ConnectionException.cs @@ -13,5 +13,7 @@ namespace System.Net.Http : base(SR.Format(SR.net_http_http2_connection_error, GetName(protocolError), ((int)protocolError).ToString("x")), protocolError) { } + + private Http2ConnectionException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs index 2451b51..32a4cc4 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2ProtocolException.cs @@ -15,7 +15,7 @@ namespace System.Net.Http ProtocolError = protocolError; } - private Http2ProtocolException(SerializationInfo info, StreamingContext context) : base(info, context) + protected Http2ProtocolException(SerializationInfo info, StreamingContext context) : base(info, context) { ProtocolError = (Http2ProtocolErrorCode)info.GetInt32(nameof(ProtocolError)); } diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs index f0c2602..2c14f41 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2StreamException.cs @@ -13,5 +13,7 @@ namespace System.Net.Http : base(SR.Format(SR.net_http_http2_stream_error, GetName(protocolError), ((int)protocolError).ToString("x")), protocolError) { } + + private Http2StreamException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } -- 2.7.4