Add CurrentPrice Writer to Writer Factory
This commit is contained in:
parent
63a962f495
commit
a73cc46449
@ -14,6 +14,7 @@ public class WriterFactory
|
|||||||
return writerName switch
|
return writerName switch
|
||||||
{
|
{
|
||||||
"NewPrice" => (IWriter)_serviceProvider.GetService(typeof(NewPriceWriter)),
|
"NewPrice" => (IWriter)_serviceProvider.GetService(typeof(NewPriceWriter)),
|
||||||
|
"CurrentPrice" => (IWriter)_serviceProvider.GetService(typeof(CurrentPriceWriter)),
|
||||||
"Dxf" => (IWriter)_serviceProvider.GetService(typeof(DxfWriter)),
|
"Dxf" => (IWriter)_serviceProvider.GetService(typeof(DxfWriter)),
|
||||||
_ => throw new ArgumentException($"Незвестный интерфейс {nameof(IWriter)}: {writerName}")
|
_ => throw new ArgumentException($"Незвестный интерфейс {nameof(IWriter)}: {writerName}")
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user