diff --git a/AsbCloudInfrastructure/Services/WellInfoService.cs b/AsbCloudInfrastructure/Services/WellInfoService.cs index ea934b14..efc1cf28 100644 --- a/AsbCloudInfrastructure/Services/WellInfoService.cs +++ b/AsbCloudInfrastructure/Services/WellInfoService.cs @@ -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)