[System] Add back a few ServicePointManager properties that can be used by multiple...
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 4 Oct 2016 08:37:45 +0000 (10:37 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 4 Oct 2016 09:13:11 +0000 (11:13 +0200)
mcs/class/System/System.Net/ServicePointManager.platformnotsupported.cs

index 2593b656fb035fbd870ad18d66583cc6b80f21d2..49c02e5a75de93e1a1372b9573fc73c749f89eca 100644 (file)
@@ -83,13 +83,13 @@ namespace System.Net
                }
 
                public static SecurityProtocolType SecurityProtocol {
-                       get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
-                       set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
-               }
+                       get;
+                       set;
+               } = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
 
                public static RemoteCertificateValidationCallback ServerCertificateValidationCallback {
-                       get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
-                       set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
+                       get;
+                       set;
                }
 
                public static EncryptionPolicy EncryptionPolicy {