BookServiceClientApp.Program.ReadChapterAsync C# (CSharp) Метод

ReadChapterAsync() приватный статический Метод

private static ReadChapterAsync ( ) : Task
Результат Task
        private static async Task ReadChapterAsync()
        {
            WriteLine(nameof(ReadChapterAsync));
            var client = new BookChapterClient(Addresses.BaseAddress);
            var chapters = await client.GetAllAsync(Addresses.BooksApi);
            Guid id = chapters.First().Id;
            BookChapter chapter = await client.GetAsync(Addresses.BooksApi + id);
            WriteLine($"{chapter.Number} {chapter.Title}");
            WriteLine();
        }