aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs')
-rw-r--r--RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs b/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs
index 4a73140..1cf6db1 100644
--- a/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs
+++ b/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs
@@ -26,6 +26,8 @@ public sealed class RhSolutionsAddIn : IExcelAddIn
.AddTransient<IExcelReader, RhExcelReader>()
.AddTransient<IExcelWriter, RhExcelWriter>();
+ Services.AddSingleton<ToolFactory>();
+
ServiceProvider = Services.BuildServiceProvider();
Configuration = ServiceProvider.GetService<IAddInConfiguration>();
Excel = ServiceProvider.GetService<Application>();