Add data provider nsi item result wait

This commit is contained in:
2025-11-05 09:41:52 +09:00
parent acbbc13fa8
commit 5a8b6c2303
9 changed files with 135 additions and 17 deletions

View File

@ -1,4 +1,5 @@
using Hcs.Broker;
using Hcs.WebApp.BackgroundServices.ResultGetters.Nsi;
using Hcs.WebApp.BackgroundServices.ResultGetters.NsiCommon;
using Hcs.WebApp.Data.Hcs;
@ -8,13 +9,13 @@ namespace Hcs.WebApp.BackgroundServices.ResultGetters
{
public IResultGetter CreateResultGetter(IServiceScope scope, IClient client, Operation operation)
{
switch (operation.Type)
return operation.Type switch
{
case Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1:
return new ExportNsiItemGetter_15_7_0_1(client, scope, operation);
}
Operation.OperationType.Nsi_ExportNsiItem_15_7_0_1 => new ExportDataProviderNsiItemGetter_15_7_0_1(client, scope, operation),
Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1 => new ExportNsiItemGetter_15_7_0_1(client, scope, operation),
throw new NotImplementedException($"Не удалось создать получателя результата операции типа {operation.Type}");
_ => throw new NotImplementedException($"Не удалось создать получателя результата операции типа {operation.Type}"),
};
}
}