- Loading...
-
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.
-
Adding validation to strongly typed configuration objects using FluentValidation
In this post I describe how to to verify your strongly typed configuration objects are correctly bound to your config at start up using FluentValidation…
-
Adding validation to strongly typed configuration objects in .NET 6
In this post I describe how to to verify your strongly typed configuration objects are correctly bound to your configuration at app startup…
-
ASP.NET Core in Action, version 3, is now available
ASP.NET Core in Action, version 3, is available now from Manning's Early Access Program, and is fully updated to .NET 7.…
-
Counting the leading zeroes in a binary number with C#
In this post I describe an algorithm to count the number of leading zeroes in a ulong, study how it works, and benchmark it against alternatives.…
in C# -
Working with System.Random and threads safely in .NET Core and .NET Framework
In this post I look at some of the ways you can misuse System.Random, comparing .NET Framework, NET Core, and .NET 6 implementations.…
in C# -
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…