forked from ddrilling/AsbCloudServer
Распараллелил выполнение задач отправки уведомления
This commit is contained in:
parent
44b88b4242
commit
4541fb42a9
@ -199,10 +199,9 @@ namespace AsbCloudInfrastructure.Services
|
|||||||
return wellMapInfo;
|
return wellMapInfo;
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
|
|
||||||
foreach (var idWell in activeWellsIds)
|
var updateWellInfoEventTasks = activeWellsIds
|
||||||
{
|
.Select(idWell => messageHub.HandleAsync(new UpdateWellInfoEvent(idWell), token));
|
||||||
await messageHub.HandleAsync(new UpdateWellInfoEvent(idWell), token);
|
await Task.WhenAll(updateWellInfoEventTasks);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private WellMapInfoWithTelemetryStat Convert(WellMapInfoWithComanies wellInfo)
|
private WellMapInfoWithTelemetryStat Convert(WellMapInfoWithComanies wellInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user