diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-26 18:22:32 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-26 18:22:32 +0300 |
commit | 54fc3320e7d64d7903b4d091fe0d5c15df01fd78 (patch) | |
tree | ac8b9aa1e883a85339a594b2797ab319cca73c4e /Source/AddIn/AddIn.cs | |
parent | 20cfbfcca3a779c04aecdca5e4b465651e2be42a (diff) |
Move to /src
Diffstat (limited to 'Source/AddIn/AddIn.cs')
-rw-r--r-- | Source/AddIn/AddIn.cs | 47 |
1 files changed, 0 insertions, 47 deletions
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(); - } - } -} |