RhSolutions-AddIn/Functions.cs

27 lines
633 B
C#
Raw Normal View History

2021-11-11 16:33:40 +03:00
using ExcelDna.Integration;
using System.Net.Http;
2021-11-11 16:33:40 +03:00
namespace Rehau.Sku.Assist
{
public class Functions : IExcelAddIn
{
static readonly HttpClient httpClient = new HttpClient();
public static object RAUNAME(string request)
2021-11-11 16:33:40 +03:00
{
return ExcelAsyncUtil.Run("RAUNAME", request, delegate
{
var document = SkuAssist.GetDocumentAsync(request, httpClient).Result;
return SkuAssist.GetResultFromDocument(document);
});
2021-11-11 16:33:40 +03:00
}
public void AutoClose()
{
}
public void AutoOpen()
{
}
}
}