diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:58:30 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:58:30 +0300 |
commit | a9ffc5510dfa295c449f0b10e6de7352b16c5ee2 (patch) | |
tree | d5322353a7a2ef92f9bb66e9ff53dff0e4bf755c /src/AddIn/AddIn.cs | |
parent | 64d0abd00603cb9de22896a57db1b48421da1b38 (diff) |
Move Serurity protocol changer
Diffstat (limited to 'src/AddIn/AddIn.cs')
-rw-r--r-- | src/AddIn/AddIn.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/AddIn/AddIn.cs b/src/AddIn/AddIn.cs index b747264..2aa71c7 100644 --- a/src/AddIn/AddIn.cs +++ b/src/AddIn/AddIn.cs @@ -2,6 +2,7 @@ using ExcelDna.IntelliSense; using Microsoft.Office.Interop.Excel; using RhSolutions.Services; +using System.Net; using System.Net.Http; namespace RhSolutions.AddIn @@ -18,6 +19,11 @@ namespace RhSolutions.AddIn IntelliSenseServer.Install(); RegistryUtil.Initialize(); EventsUtil.Initialize(); + + ServicePointManager.SecurityProtocol = + SecurityProtocolType.Tls12 | + SecurityProtocolType.Tls11 | + SecurityProtocolType.Tls; } public void AutoClose() |