Handling Range Requests in .NET 9 Behind Azure Front Door
Handling Range Requests in .NET 9 Behind Azure Front Door

When deploying a .NET 9 application behind Azure Front Door with response compression enabled, you might encounter unexpected issues with static files, such as HTTP 416 Range Not Satisfiable errors. These arise because Front Door often sends byte-range requests for optimization, which your application may not handle properly by default. To address this, you can... » read more

C# 12: Aliasing Any Type.  Hide Those Tuples
C# 12: Aliasing Any Type. Hide Those Tuples

Exploring C# 12: Embracing Type Aliases for Cleaner Code As a dedicated C# developer, I’m thrilled to delve into one of the most exciting features coming with C# 12—type aliases. This new capability is a game-changer, especially for those of us who often rely on Tuples to pass parameters without creating specific classes. Let’s explore... » read more

Using AI to Generate a File Cache in C#
Using AI to Generate a File Cache in C#

Like most, I’ve been playing around with the awesome capabilities of AI for developers. Recently we had to develop a small class library that would act as a specialized cache. Since I had a little extra bandwidth, I decided to have a little fun and see if I could get an AI engine to write... » read more

It’s better to .Take()
It’s better to .Take()

Given a EFCore entity object that has a navigation property, and the schema is built for a one-to-many relationship, but you want a navigation property to represent a single record based on a specific filter.