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