diff --git a/src/Shared/HandyControlDemo_Shared/App.xaml.cs b/src/Shared/HandyControlDemo_Shared/App.xaml.cs index c571c2f9..21e234e0 100644 --- a/src/Shared/HandyControlDemo_Shared/App.xaml.cs +++ b/src/Shared/HandyControlDemo_Shared/App.xaml.cs @@ -6,7 +6,6 @@ using System.Net; #if !NET40 using System.Runtime; #endif -using System.Security.Authentication; using System.Threading; using System.Windows; using HandyControl.Data; @@ -76,7 +75,7 @@ namespace HandyControlDemo ConfigHelper.Instance.SetWindowDefaultStyle(); ConfigHelper.Instance.SetNavigationWindowDefaultStyle(); - ServicePointManager.SecurityProtocol = (SecurityProtocolType)(SslProtocols)0x00000C00; + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; } }