public async Task StartAsync(IDialogContext context) { CookBookClient client = new CookBookClient(); var recipes = await client.GetRecipes(); await DisplayRecipes(context, recipes); }
public async Task Load() { IsRefreshing = true; Recipes.Clear(); var items = await _cookBookClient.GetRecipes(); foreach (var item in items) { Recipes.Add(item); await Task.Delay(300); } IsRefreshing = false; }