aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-20 09:58:39 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-20 09:58:39 +0300
commita73cc46449c76117d4d6fc72aac6e44c854bb411 (patch)
tree666f72b2ad27df096be78700f0a164b7b6fd04fa
parent63a962f495d25a2ec4dac0b8b75cd2ba5b12acc1 (diff)
Add CurrentPrice Writer to Writer Factory
-rw-r--r--RhSolutions.AddIn/Services/WriterFactory.cs1
1 files changed, 1 insertions, 0 deletions
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}")
};