From a73cc46449c76117d4d6fc72aac6e44c854bb411 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 20 Jun 2023 09:58:39 +0300 Subject: [PATCH] Add CurrentPrice Writer to Writer Factory --- RhSolutions.AddIn/Services/WriterFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/RhSolutions.AddIn/Services/WriterFactory.cs b/RhSolutions.AddIn/Services/WriterFactory.cs index 04ce49b..765fde9 100644 --- a/RhSolutions.AddIn/Services/WriterFactory.cs +++ b/RhSolutions.AddIn/Services/WriterFactory.cs @@ -14,6 +14,7 @@ public class WriterFactory return writerName switch { "NewPrice" => (IWriter)_serviceProvider.GetService(typeof(NewPriceWriter)), + "CurrentPrice" => (IWriter)_serviceProvider.GetService(typeof(CurrentPriceWriter)), "Dxf" => (IWriter)_serviceProvider.GetService(typeof(DxfWriter)), _ => throw new ArgumentException($"Незвестный интерфейс {nameof(IWriter)}: {writerName}") };