Update App.xaml.cs

This commit is contained in:
NaBian committed 2020-11-28 18:04:49 +08:00
1 parent 64db2194e7
commit 30f48ed612
1 file changed
+4
@@ -75,7 +75,11 @@ namespace HandyControlDemo
ConfigHelper.Instance.SetWindowDefaultStyle();
ConfigHelper.Instance.SetNavigationWindowDefaultStyle();
#if NET40
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
#else
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif
}
}