In the 2.1 release of IHttpClientFactory, the ASP.NET team included some built-in logging of the HTTP calls made via HttpClients created by the factory. This can be useful for the diagnosis of failures, as well as to understand the time taken to complete HTTP calls to external services. In this post, I want to explore […]
Tag: IHttpClientFactory
HttpClientFactory in ASP.NET Core 2.1 (Part 4) Integrating with Polly for transient fault handling
In the previous post in this series, I introduced the concept of outgoing middleware using DelegatingHandlers registered with named and typed clients. While that approach is available, the ASP.NET team hope that for most scenarios, we won’t need to resort to manually building our own handlers. In some cases, the built-in features of the library […]
Contributing to the Microsoft ASP.NET Documentation My experience of writing for docs.microsoft.com
Back in February I spotted an issue on the ASP.NET Core Docs repository. The issue was a requirement for new documentation about the IHttpClientFactory feature being added in ASP.NET Core 2.1. I’d been following the work on IHttpClientFactory for a while and had written a couple of posts about the functionality based on the nightly builds. […]
HttpClientFactory in ASP.NET Core 2.1 (Part 3) Outgoing request middleware with handlers.
In my previous posts in this series (An Introduction to HttpClientFactory and Defining Named and Typed Clients) I introduced some core concepts and then showed some examples of using the new IHttpClientFactory feature in ASP.NET Core 2.1. It’s been a while since those first two posts but I’d like to continue this series by looking […]
HttpClientFactory in ASP.NET Core 2.1 (Part 1) An Introduction to HttpClientFactory
TL;DR; A new HttpClientFactory feature is coming in ASP.NET Core 2.1 which helps to solve some common problems that developers may run into when using HttpClient instances to make external web requests from their applications. Introduction This blog post has been in the works since mid-October 2017, which was when I first noticed the new […]