Implement result getter

This commit is contained in:
2025-11-01 19:15:07 +09:00
parent 6fc2db95ec
commit 821eeb41ae
16 changed files with 243 additions and 18 deletions

View File

@ -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}");
}
}
}