Add data provider nsi item result wait
This commit is contained in:
@ -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}"),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user