Implement result getter
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
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}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user