A advanced level task for practicing asynchronous programming for I/O bound operations.
In this task you
- will learn the basics of async programming;
- will get acquainted with Task and Task classes from System.Threading.Tasks namespace;
- will learn how to use
async/await
key words in asynchronous programming.
Before starting the task learn how to use Task
/Task<TResult>
classes and async/await
key words in C#.
Estimated time to complete the task: 6h.
- Review the articles
- Learn how the REST COUNTRIES ๐ต๐ช RESTful service works.
- Implement the
CountryService
class whose methods return data as a result of requests to the following endpoints API ENDPOINTS V2 of the RESTful service. - Compare synchronous and asynchronous implementations of the methods. Make inferences about usage preference.