[System] Add back a few ServicePointManager properties that can be used by multiple...
[mono.git] / 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 {