Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!
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. Get 45% off with the code pblock3, only until August 17th!
Form binding in minimal APIs
Exploring the .NET 8 preview - Part 7
In this post I discuss the new form binding support for minimal APIs, the current limitations and rough edges, and how to work with antiforgery tokens…
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…
Serializing a PascalCase Newtonsoft.Json JObject to camelCase
In this post I describe one of the quirks of serializing a JSON.NET JObject, and show how to get camelCase names from a PascalCase JObject.…
Creating a not-empty GUID validation attribute and a not-default validation attribute
In this post I describe an MVC validation attribute that verifies a GUID doesn't have the default Empty value. I also present a generalised version.…
Coming in ASP.NET Core 2.1 - top-level MVC parameter validation
This post looks at a feature coming in ASP.NET Core 2.1 related to Model Binding in ASP.NET Core MVC/Web API Controllers - top-level parameter validation.…
Using CancellationTokens in ASP.NET Core MVC controllers
In this post I'll show how you can use CancellationTokens in your MVC action methods to stop execution when a user cancels a request from their browser…