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

Avoiding performance pitfalls in incremental generators
Creating a source generator - Part 9
In this post I describe some important things to think about when designing your incremental source generator, particularly the pitfalls to watch out for…

Updates to the StronglyTypedId library - simplification, templating, and CodeFixes
Using strongly-typed entity IDs to avoid primitive obsession - Part 8
In this post I describe some recent major updates to my StronglyTypedId NuGet package, describe why I made the changes, and demonstrate how they work…

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…
![Banner image for Enriching logs with [TagProvider] and ILogEnricher](/content/images/2023/telemetry_logs_banner.jpg)
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.…
![Banner image for Behind [LogProperties] and the new telemetry logging source generator](/content/images/2023/telemetry_source_gen_banner.png)
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.…

