In this blog post, I want to get back to an area I genuinely enjoy, exploring the use of HttpClient within your .NET applications. I’ll explain how you can optimise the performance of HttpClient when handling data such as JSON payloads on the HttpResponseMessage. Making HTTP Requests Using HttpClient By default, in the majority of […]
Building ASP.NET Core Hosted Services and .NET Core Worker Services
I’m excited to announce the release of my third and latest course at Pluralsight! This new course covers building ASP.NET Core hosted services and .NET Core worker services. When I first pitched the course proposal to Pluralsight, I was quite surprised that it hadn’t been covered in great detail already. In my daily work, building .NET […]
ASP.NET Core 5 Features – Introducing HttpProtocol
In this blog post, which will be a quick read, I’m going to begin what I expect to be a long-running endeavour, to dig into new APIs available in .NET 5 and ASP.NET Core 5.0. This time, I’m going to look at a new helper for HTTP protocol versions. What are HTTP Protocol Versions? Through […]
Upgrading from ASP.NET Core 3.1 to 5.0 (Preview 1)
In this post, I want to take a look at the steps required to upgrade some projects to the first preview of .NET 5 and ASP.NET Core 5.0. Both were released yesterday (16th March 2020) and are the first public previews we have available for these future versions. The .NET 5 roadmap has these scheduled […]
Anonymous Aware Middleware with Endpoint Routing and Healthchecks
In this post, I want to describe an approach to allow anonymous access to a health check endpoint, added using the MapHealthChecks extension on EndpointRouting. I’ll also cover how to make changes to custom middleware so that it doesn’t apply to endpoints which allow anonymous access. The scenario is based on one that I encountered […]