diff --git a/src/web/Pages/Index.razor b/src/web/Pages/Index.razor index 11fd41b..30c7c67 100644 --- a/src/web/Pages/Index.razor +++ b/src/web/Pages/Index.razor @@ -113,19 +113,29 @@ using FeedIterator feed = container.GetItemQueryIterator( queryDefinition: query ); + // await WriteToConsoleAync($"Ran query:\t{query.QueryText}"); + // + List items = new(); + double requestCharge = 0d; while (feed.HasMoreResults) { FeedResponse response = await feed.ReadNextAsync(); foreach (Product item in response) { // Do something with each item - await WriteToConsoleAync($"Found item:\t{item.name}\t[{item.id}]"); + items.Add(item); } - await WriteToConsoleAync($"Request charge:\t{response.RequestCharge:0.00}"); + requestCharge += response.RequestCharge; } - // + // + + foreach(var item in items) + { + await WriteToConsoleAync($"Found item:\t{item.name}\t[{item.id}]"); + } + await WriteToConsoleAync($"Request charge:\t{requestCharge:0.00}"); } await WriteToConsoleAync("Current Status:\tStopping...");