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();