Add data provider nsi item result wait
This commit is contained in:
@ -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}"),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,6 +26,7 @@ namespace Hcs.WebApp.BackgroundServices.OperationExecutors.Nsi
|
||||
272 => exportDataProviderNsiItemRequestRegistryNumber.Item272,
|
||||
302 => exportDataProviderNsiItemRequestRegistryNumber.Item302,
|
||||
337 => exportDataProviderNsiItemRequestRegistryNumber.Item337,
|
||||
|
||||
_ => throw new ArgumentException($"Не удалось получить номер справочника из значения {number}"),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user