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.
Redacting sensitive data in logs with Microsoft.Extensions.Compliance.Redaction
In this post I show how you can add redaction to your [LogProperties] and [TagProvider] objects using the Microsoft.Extensions.Compliance.Redaction package…
Enriching logs with [TagProvider] and ILogEnricher
In this post I look at the [TagProperties] and ILogEnricher features from the Microsoft.Extensions.Telemetry and show how they can be used in your apps.…
Behind [LogProperties] and the new telemetry logging source generator
In this post I look at the new Microsoft.Extensions.Telemetry.Abstractions logging source generator, the generated code, and the [LogProperties] attribute…
A failed experiment with interceptors in C# 12 and .NET 8
In this post I described how I tried (and failed) to add an interceptor for Enum.ToString(), due to a bug in the Roslyn compiler.…
Reading JSON and binary data from multipart/form-data sections in ASP.NET Core
In this post I describe how to read both JSON and binary data from a multipart/form-data request using two approaches - MultipartReader and IFormFile…
Short-circuit routing in .NET 8
Exploring the .NET 8 preview - Part 11
In this post I describe the new short-circuit routing feature, how it differs from normal routing, discuss why it's useful, and look at how it's implemented…