private async static Task RunAsync() { var categoryClient = new CategoriesClient(basePath); var productsClient = new ProductsClient(basePath); var products = await productsClient.GetAllAsync(); var categories = await categoryClient.GetAllAsync(); Console.WriteLine("-----Products-------"); foreach (var product in products) { Console.WriteLine(product.ToString()); } Console.WriteLine("-----Categories-------"); foreach (var category in categories) { Console.WriteLine(category.ToString()); } }