From 54fc3320e7d64d7903b4d091fe0d5c15df01fd78 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sun, 26 Dec 2021 18:22:32 +0300 Subject: Move to /src --- Source/AddIn/AddIn.cs | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 Source/AddIn/AddIn.cs (limited to 'Source/AddIn/AddIn.cs') diff --git a/Source/AddIn/AddIn.cs b/Source/AddIn/AddIn.cs deleted file mode 100644 index 67cdcc8..0000000 --- a/Source/AddIn/AddIn.cs +++ /dev/null @@ -1,47 +0,0 @@ -using ExcelDna.Integration; -using ExcelDna.IntelliSense; -using ExcelDna.Registration; -using System.Net.Http; -using System.Runtime.Caching; - - -namespace RehauSku -{ - public enum ResponseOrder - { - Default, - Relevance, - Name, - Price, - Series - } - - public class AddIn : IExcelAddIn - { - public static HttpClient httpClient; - public static MemoryCache memoryCache; - - public void AutoOpen() - { - httpClient = new HttpClient(); - memoryCache = new MemoryCache("RehauSku"); - RegisterFunctions(); - IntelliSenseServer.Install(); - RegistryUtil.Initialize(); - } - - public void AutoClose() - { - IntelliSenseServer.Uninstall(); - RegistryUtil.Uninitialize(); - memoryCache.Dispose(); - } - - void RegisterFunctions() - { - ExcelRegistration.GetExcelFunctions() - .ProcessAsyncRegistrations(nativeAsyncIfAvailable: false) - .RegisterFunctions(); - } - } -} -- cgit v1.2.3