aboutsummaryrefslogtreecommitdiff
path: root/Source/ExcelDNA/AddIn.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ExcelDNA/AddIn.cs')
-rw-r--r--Source/ExcelDNA/AddIn.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/ExcelDNA/AddIn.cs b/Source/ExcelDNA/AddIn.cs
new file mode 100644
index 0000000..0505e5b
--- /dev/null
+++ b/Source/ExcelDNA/AddIn.cs
@@ -0,0 +1,28 @@
+using ExcelDna.Integration;
+using ExcelDna.Registration;
+using System.Net.Http;
+
+namespace Rehau.Sku.Assist
+{
+ public class AddIn : IExcelAddIn
+ {
+ public static HttpClient httpClient;
+
+ public void AutoOpen()
+ {
+ RegisterFunctions();
+ httpClient = new HttpClient();
+ }
+
+ public void AutoClose()
+ {
+ }
+
+ void RegisterFunctions()
+ {
+ ExcelRegistration.GetExcelFunctions()
+ .ProcessAsyncRegistrations(nativeAsyncIfAvailable: false)
+ .RegisterFunctions();
+ }
+ }
+}