From 30f48ed6128221ec31ab1afc06862e79a33edd0c Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 28 Nov 2020 18:04:49 +0800 Subject: [PATCH] Update App.xaml.cs --- src/Shared/HandyControlDemo_Shared/App.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Shared/HandyControlDemo_Shared/App.xaml.cs b/src/Shared/HandyControlDemo_Shared/App.xaml.cs index 21e234e0..f662331f 100644 --- a/src/Shared/HandyControlDemo_Shared/App.xaml.cs +++ b/src/Shared/HandyControlDemo_Shared/App.xaml.cs @@ -75,7 +75,11 @@ namespace HandyControlDemo ConfigHelper.Instance.SetWindowDefaultStyle(); ConfigHelper.Instance.SetNavigationWindowDefaultStyle(); +#if NET40 + ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; +#else ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; +#endif } }