aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-05 21:14:33 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-05 21:14:33 +0300
commitcd96e10aa4eff487d8ff1bef3be392ee6568076f (patch)
tree83fd5de35f7acde37518086580d950c090b0a226
parent50ae69bea4a7582524a17751c2cbbb8ae7ead0f3 (diff)
Readonly httpClient
-rw-r--r--Source/ExcelDNA/AddIn.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/ExcelDNA/AddIn.cs b/Source/ExcelDNA/AddIn.cs
index 0505e5b..b62412d 100644
--- a/Source/ExcelDNA/AddIn.cs
+++ b/Source/ExcelDNA/AddIn.cs
@@ -6,12 +6,11 @@ namespace Rehau.Sku.Assist
{
public class AddIn : IExcelAddIn
{
- public static HttpClient httpClient;
+ public static readonly HttpClient httpClient = new HttpClient();
public void AutoOpen()
{
RegisterFunctions();
- httpClient = new HttpClient();
}
public void AutoClose()