Skip to content

Commit

Permalink
Update App.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Nov 28, 2020
1 parent 64db219 commit 30f48ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Shared/HandyControlDemo_Shared/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ protected override void OnStartup(StartupEventArgs e)
ConfigHelper.Instance.SetWindowDefaultStyle();
ConfigHelper.Instance.SetNavigationWindowDefaultStyle();

#if NET40
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
#else
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif
}
}

Expand Down

0 comments on commit 30f48ed

Please sign in to comment.