From 74a734f54ddf51e14f214475efd55411acbc6ad4 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 14 Nov 2020 23:18:36 +0800 Subject: [PATCH] Update App.xaml.cs --- src/Shared/HandyControlDemo_Shared/App.xaml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } }