Exemple #1
0
        private static async Task HandleMovementsChanges(IReadOnlyList <ArticleMovement> changes)
        {
            Console.WriteLine(changes.Count + " Change(s) Received");

            var movementsByLocation = StockHelper.GroupInboundOutboundStock(changes);

            var tasks = movementsByLocation
                        .Select(InventoryService.CalculateInventoryOnStorageLocations)
                        .ToList();

            await Task.WhenAll(tasks);
        }