Switch Currency client from transient to singleton

This commit is contained in:
Sergey Chebotar 2023-06-08 07:43:49 +03:00
parent bfab7eb02b
commit 1399d71f3c

View File

@ -24,7 +24,7 @@ public sealed class RhSolutionsAddIn : IExcelAddIn
.AddSingleton((Application)ExcelDnaUtil.Application)
.AddSingleton<IAddInConfiguration, AddInConfiguration>()
.AddSingleton<IDatabaseClient, DatabaseClient>()
.AddTransient<ICurrencyClient, CurrencyClient>()
.AddSingleton<ICurrencyClient, CurrencyClient>()
.AddTransient<IFileDialog, FileDialog>();
Services.AddSingleton<WriterFactory>();