- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Handling Web API Exceptions with ProblemDetails middleware
In this post I describe the ProblemDetailsMiddleware by Kristian Hellang that can be used to return ProblemDetails when an exception occurs in an API project.…

Creating an endpoint from multiple middleware in ASP.NET Core 3.x
In this post I show how you can create a composite endpoint in ASP.NET Core 3.x, by combining multiple middleware into a pipeline as your endpoint.…

Inserting middleware between UseRouting() and UseEndpoints() as a library author - Part 2
In this post I show how, as a library author, you can insert middleware into a consumer's pipeline between the call to UseRouting and UseEndpoints.…

Inserting middleware between UseRouting() and UseEndpoints() as a library author - Part 1
In this post I show how, as a library author, you can insert middleware into a consumer's pipeline between the call to UseRouting and UseEndpoints.…

Converting a terminal middleware to endpoint routing in ASP.NET Core 3.0
Upgrading to ASP.NET Core 3.0 - Part 4
In this post I provide an overview of the new endpoint routing system, and show how you can use it to create endpoints using middleware…

Using strongly-typed entity IDs to avoid primitive obsession
In this series I describe how to use middleware as an MVC filter to add request localisation to your app.…

