RhSolutions-AddIn/Source/ExcelDNA/AddIn.cs

28 lines
617 B
C#
Raw Normal View History

2021-11-29 15:50:24 +03:00
using ExcelDna.Integration;
using ExcelDna.Registration;
using System.Net.Http;
2021-11-29 15:50:24 +03:00
namespace Rehau.Sku.Assist
{
public class AddIn : IExcelAddIn
{
2021-12-05 21:14:33 +03:00
public static readonly HttpClient httpClient = new HttpClient();
2021-11-29 15:50:24 +03:00
public void AutoOpen()
{
RegisterFunctions();
}
public void AutoClose()
{
}
void RegisterFunctions()
{
ExcelRegistration.GetExcelFunctions()
.ProcessAsyncRegistrations(nativeAsyncIfAvailable: false)
.RegisterFunctions();
}
}
}