From e67b5b24fd4a02df8516c43adf316bbcc04f7682 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 29 Nov 2021 17:13:36 +0300 Subject: [PATCH] Private field name fix --- src/ExcelDNA/Functions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExcelDNA/Functions.cs b/src/ExcelDNA/Functions.cs index 6792195..ec9c607 100644 --- a/src/ExcelDNA/Functions.cs +++ b/src/ExcelDNA/Functions.cs @@ -7,12 +7,12 @@ namespace Rehau.Sku.Assist { public class Functions { - private static HttpClient httpClient = new HttpClient(); + private static HttpClient _httpClient = new HttpClient(); [ExcelFunction] public static async Task RAUNAME(string request) { - Task contentTask = Task.Run(() => SkuAssist.GetContent(request, httpClient)); + Task contentTask = Task.Run(() => SkuAssist.GetContent(request, _httpClient)); Task documentTask = await contentTask.ContinueWith(content => SkuAssist.GetDocument(content)); IProduct product = await documentTask.ContinueWith(doc => SkuAssist.GetProductFromDocument(doc.Result)); return product == null ? ExcelError.ExcelErrorNull.ToString() : product.ToString();