May 2021
Intermediate to advanced
832 pages
25h 39m
English
This chapter covers
HttpClient incorrectly to call HTTP APIsIHttpClientFactory to manage HttpClient lifetimesIHttpClientFactorySo far in this book we’ve focused on creating web pages and exposing APIs. Whether that’s customers browsing a Razor Pages application or client-side SPAs and mobile apps consuming your APIs, we’ve been writing the APIs for others to consume.
However, it’s very common for your application to interact with third-party services by consuming their APIs. For example, an e-commerce site needs to take payments, send email and SMS messages, and retrieve exchange rates from a third-party ...