Summary
Working through this chapter, you’ll have a running client console application to run the game. We used the HttpClient
class to send requests to the games service. To reuse this with different client technologies, we created a library. For efficient use of the HttpClient
class, you learned to use the HttpClient factory.
Instead of implementing the models on your own, you learned using Microsoft Kiota to create code from the OpenAPI definition. With your own scenarios, you can now decide what’s the best option for you.
Before reading the next chapter, you can reuse this newly created library and create clients of your choice such as Blazor, WinUI, or .NET MAUI. While these frameworks are outside of the scope of this book, you can check https://github.com/codebreakerapp for more clients available.
No matter what client you implement, before diving into the next chapter, it’s well deserved to play one more game—this time with your own created...