- 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.

Extracting metadata from a minimal API handler
Behind the scenes of minimal APIs - Part 2
In this post I look at how the RequestDelegateFactory.InferMetadata() function extracts metadata about a minimal API handler using reflection.…

A first look behind the scenes of minimal API endpoints
Behind the scenes of minimal APIs - Part 1
In this post I take a high-level look at how a call to MapGet("/", () => "Hello World!") is turned into a RequestDelegate that ASP.NET Core can execute.…

Behind the scenes of minimal APIs
In this series I look at the source code behind minimal APIs, to see how minimal APIs are turned into RequestDelegates that ASP.NET Core can execute.…

Using CancellationTokens in ASP.NET Core minimal APIs
In this post I'll show how you can use CancellationTokens in your minimal API handlers to stop execution when a user cancels a request from their browser…

Adding content negotiation to minimal APIs with Carter
In this post I show how to use the open source library Carter to add content negotiation to an ASP.NET Core minimal API app…

Returning XML from minimal APIs in .NET 6
In this post I show how to return an XML response from minimal APIs, how to create a helper extension method, and discuss performance considerations…

