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

@ -9,16 +9,13 @@ namespace Hcs.WebApp.BackgroundServices.OperationExecutors
{
public IExecutor CreateExecutor(IServiceScope scope, IClient client, Operation operation)
{
switch (operation.Type)
return operation.Type switch
{
case Operation.OperationType.Nsi_ExportNsiItem_15_7_0_1:
return new ExportDataProviderNsiItemExecutor_15_7_0_1(client, scope, operation);
Operation.OperationType.Nsi_ExportNsiItem_15_7_0_1 => new ExportDataProviderNsiItemExecutor_15_7_0_1(client, scope, operation),
Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1 => new ExportNsiItemExecutor_15_7_0_1(client, scope, operation),
case Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1:
return new ExportNsiItemExecutor_15_7_0_1(client, scope, operation);
}
throw new NotImplementedException($"Не удалось создать выполнителя операции типа {operation.Type}");
_ => throw new NotImplementedException($"Не удалось создать выполнителя операции типа {operation.Type}"),
};
}
}
}

View File

@ -26,6 +26,7 @@ namespace Hcs.WebApp.BackgroundServices.OperationExecutors.Nsi
272 => exportDataProviderNsiItemRequestRegistryNumber.Item272,
302 => exportDataProviderNsiItemRequestRegistryNumber.Item302,
337 => exportDataProviderNsiItemRequestRegistryNumber.Item337,
_ => throw new ArgumentException($"Не удалось получить номер справочника из значения {number}"),
};
}