diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:27:47 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-12-20 12:27:47 +0300 |
commit | 73569a43644309d0342817580bcfd86c1face5b8 (patch) | |
tree | f3c6e15db82130b02ec8c3fa1b64674e6a9cf48d /src/AddIn.cs | |
parent | 3d186c22e8665b80839495fdcf4b176c2f3e03b9 (diff) |
Namespace refactoring
Diffstat (limited to 'src/AddIn.cs')
-rw-r--r-- | src/AddIn.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/AddIn.cs b/src/AddIn.cs new file mode 100644 index 0000000..8c44821 --- /dev/null +++ b/src/AddIn.cs @@ -0,0 +1,31 @@ +using ExcelDna.Integration; +using ExcelDna.IntelliSense; +using Microsoft.Office.Interop.Excel; +using RhSolutions.Services; +using System.Net.Http; +using System.Runtime.Caching; + +namespace RhSolutions +{ + class RhSolutionsAddIn : IExcelAddIn + { + public static Application Excel; + public static HttpClient httpClient; + + public void AutoOpen() + { + Excel = (Application)ExcelDnaUtil.Application; + httpClient = new HttpClient(); + IntelliSenseServer.Install(); + RegistryUtil.Initialize(); + EventsUtil.Initialize(); + } + + public void AutoClose() + { + IntelliSenseServer.Uninstall(); + RegistryUtil.Uninitialize(); + EventsUtil.Uninitialize(); + } + } +} |