22 lines
746 B
C#
22 lines
746 B
C#
using Hcs.Broker;
|
||
using Hcs.WebApp.BackgroundServices.ResultGetters.NsiCommon;
|
||
using Hcs.WebApp.Data.Hcs;
|
||
|
||
namespace Hcs.WebApp.BackgroundServices.ResultGetters
|
||
{
|
||
public class ResultGetterFactory
|
||
{
|
||
public IResultGetter CreateResultGetter(IServiceScope scope, IClient client, Operation operation)
|
||
{
|
||
switch (operation.Type)
|
||
{
|
||
case Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1:
|
||
return new ExportNsiItemGetter_15_7_0_1(client, scope, operation);
|
||
}
|
||
|
||
throw new NotImplementedException($"Не удалось создать получателя результата операции типа {operation.Type}");
|
||
}
|
||
}
|
||
|
||
}
|