Beispiel #1
0
        public async Task Execute()
        {
            try
            {
                Search = GetInitialSeach();
                var results = await ShipmentDAO.Methods.Search(Search);

                var total = results.Pagination.Total;
                await SetShipments();

                for (; Search.Pagination.Offset < total; IncrementSearch(), await SetShipments())
                {
                    Shipments.ForEach(async shipment =>
                    {
                        await Update(shipment);
                        await ShipmentUseCases.NotifyUpdates(shipment);
                    });
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                //return;
            }
        }