Exemplo n.º 1
0
        public async Task GetDogBreedsAsync()
        {
            List <string> breeds = await(dogService?.GetDogBreedsAsync()).ConfigureAwait(false);

            if (breeds == null || !breeds.Any())
            {
                _ = await ReplyAsync("Could not get a the dog breeds :(").ConfigureAwait(false);

                return;
            }
            _ = await ReplyAsync("Here's a list of available dog breeds:" + Environment.NewLine + string.Join(", ", breeds)).ConfigureAwait(false);
        }