Readonly httpClient

This commit is contained in:
Sergey Chebotar 2021-12-05 21:14:33 +03:00
parent 50ae69bea4
commit cd96e10aa4

View File

@ -6,12 +6,11 @@ namespace Rehau.Sku.Assist
{ {
public class AddIn : IExcelAddIn public class AddIn : IExcelAddIn
{ {
public static HttpClient httpClient; public static readonly HttpClient httpClient = new HttpClient();
public void AutoOpen() public void AutoOpen()
{ {
RegisterFunctions(); RegisterFunctions();
httpClient = new HttpClient();
} }
public void AutoClose() public void AutoClose()