BookServiceClientApp.Program.ReadChaptersAsync C# (CSharp) Method

ReadChaptersAsync() private static method

private static ReadChaptersAsync ( ) : Task
return Task
        private static async Task ReadChaptersAsync()
        {
            WriteLine(nameof(ReadChaptersAsync));
            var client = new BookChapterClient(Addresses.BaseAddress);
            IEnumerable<BookChapter> chapters = await client.GetAllAsync(Addresses.BooksApi);

            foreach (BookChapter chapter in chapters)
            {
                WriteLine(chapter.Title);
            }
            WriteLine();
        }