Add Magic Service

This commit is contained in:
Sergey Chebotar 2023-05-23 06:52:52 +03:00
parent 21fb58744c
commit c308e72ee0

View File

@ -36,6 +36,8 @@ public sealed class RhSolutionsAddIn : IExcelAddIn
Services.AddSingleton<ReaderFactory>(); Services.AddSingleton<ReaderFactory>();
Services.AddTransient<ExcelReader>() Services.AddTransient<ExcelReader>()
.AddTransient<IReader, ExcelReader>(s => s.GetService<ExcelReader>()); .AddTransient<IReader, ExcelReader>(s => s.GetService<ExcelReader>());
Services.AddTransient<MagicReader>()
.AddTransient<IReader, MagicReader>(s => s.GetService<MagicReader>());
Services.AddSingleton<ToolFactory>(); Services.AddSingleton<ToolFactory>();