44using System . Globalization ;
55using System . Net . Security ;
66using System . Collections . Generic ;
7+ using System . Runtime . Versioning ;
78using System . Security . Authentication ;
89using System . Security . Cryptography . X509Certificates ;
910using System . Threading ;
@@ -52,12 +53,14 @@ protected override void Dispose(bool disposing)
5253 public virtual bool SupportsProxy => _underlyingHandler . SupportsProxy ;
5354 public virtual bool SupportsRedirectConfiguration => _underlyingHandler . SupportsRedirectConfiguration ;
5455
56+ [ UnsupportedOSPlatform ( "browser" ) ]
5557 public bool UseCookies
5658 {
5759 get => _underlyingHandler . UseCookies ;
5860 set => _underlyingHandler . UseCookies = value ;
5961 }
6062
63+ [ UnsupportedOSPlatform ( "browser" ) ]
6164 public CookieContainer CookieContainer
6265 {
6366 get => _underlyingHandler . CookieContainer ;
@@ -72,36 +75,42 @@ public CookieContainer CookieContainer
7275 }
7376 }
7477
78+ [ UnsupportedOSPlatform ( "browser" ) ]
7579 public DecompressionMethods AutomaticDecompression
7680 {
7781 get => _underlyingHandler . AutomaticDecompression ;
7882 set => _underlyingHandler . AutomaticDecompression = value ;
7983 }
8084
85+ [ UnsupportedOSPlatform ( "browser" ) ]
8186 public bool UseProxy
8287 {
8388 get => _underlyingHandler . UseProxy ;
8489 set => _underlyingHandler . UseProxy = value ;
8590 }
8691
92+ [ UnsupportedOSPlatform ( "browser" ) ]
8793 public IWebProxy ? Proxy
8894 {
8995 get => _underlyingHandler . Proxy ;
9096 set => _underlyingHandler . Proxy = value ;
9197 }
9298
99+ [ UnsupportedOSPlatform ( "browser" ) ]
93100 public ICredentials ? DefaultProxyCredentials
94101 {
95102 get => _underlyingHandler . DefaultProxyCredentials ;
96103 set => _underlyingHandler . DefaultProxyCredentials = value ;
97104 }
98105
106+ [ UnsupportedOSPlatform ( "browser" ) ]
99107 public bool PreAuthenticate
100108 {
101109 get => _underlyingHandler . PreAuthenticate ;
102110 set => _underlyingHandler . PreAuthenticate = value ;
103111 }
104112
113+ [ UnsupportedOSPlatform ( "browser" ) ]
105114 public bool UseDefaultCredentials
106115 {
107116 // SocketsHttpHandler doesn't have a separate UseDefaultCredentials property. There
@@ -124,6 +133,7 @@ public bool UseDefaultCredentials
124133 }
125134 }
126135
136+ [ UnsupportedOSPlatform ( "browser" ) ]
127137 public ICredentials ? Credentials
128138 {
129139 get => _underlyingHandler . Credentials ;
@@ -136,12 +146,14 @@ public bool AllowAutoRedirect
136146 set => _underlyingHandler . AllowAutoRedirect = value ;
137147 }
138148
149+ [ UnsupportedOSPlatform ( "browser" ) ]
139150 public int MaxAutomaticRedirections
140151 {
141152 get => _underlyingHandler . MaxAutomaticRedirections ;
142153 set => _underlyingHandler . MaxAutomaticRedirections = value ;
143154 }
144155
156+ [ UnsupportedOSPlatform ( "browser" ) ]
145157 public int MaxConnectionsPerServer
146158 {
147159 get => _underlyingHandler . MaxConnectionsPerServer ;
@@ -181,6 +193,7 @@ public long MaxRequestContentBufferSize
181193 }
182194 }
183195
196+ [ UnsupportedOSPlatform ( "browser" ) ]
184197 public int MaxResponseHeadersLength
185198 {
186199 get => _underlyingHandler . MaxResponseHeadersLength ;
@@ -220,6 +233,7 @@ public ClientCertificateOption ClientCertificateOptions
220233 }
221234 }
222235
236+ [ UnsupportedOSPlatform ( "browser" ) ]
223237 public X509CertificateCollection ClientCertificates
224238 {
225239 get
@@ -234,6 +248,7 @@ public X509CertificateCollection ClientCertificates
234248 }
235249 }
236250
251+ [ UnsupportedOSPlatform ( "browser" ) ]
237252 public Func < HttpRequestMessage , X509Certificate2 ? , X509Chain ? , SslPolicyErrors , bool > ? ServerCertificateCustomValidationCallback
238253 {
239254#if TARGETS_BROWSER
@@ -251,6 +266,7 @@ public X509CertificateCollection ClientCertificates
251266#endif
252267 }
253268
269+ [ UnsupportedOSPlatform ( "browser" ) ]
254270 public bool CheckCertificateRevocationList
255271 {
256272 get => _underlyingHandler . SslOptions . CertificateRevocationCheckMode == X509RevocationMode . Online ;
@@ -261,6 +277,7 @@ public bool CheckCertificateRevocationList
261277 }
262278 }
263279
280+ [ UnsupportedOSPlatform ( "browser" ) ]
264281 public SslProtocols SslProtocols
265282 {
266283 get => _underlyingHandler . SslOptions . EnabledSslProtocols ;
0 commit comments