site image
Andrew Lock avatar

Andrew Lock

C#
  1. Loading...
  2. Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

    30% off with code ANDREW30 on Dometrain Pro
  3. ASP.NET Core in Action, Third Edition

    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.

  4. Banner image for Redacting sensitive data in logs with Microsoft​.Extensions​.Compliance​.Redaction

    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…

  5. Banner image for Enriching logs with [TagProvider] and ILogEnricher

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

  6. Banner image for Behind [LogProperties] and the new telemetry logging source generator

    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…

  7. Banner image for A failed experiment with interceptors in C# 12 and .NET 8

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

     in  ASP.NET CoreNuGetSource GeneratorsC#
  8. Banner image for Replacing method calls with Interceptors

    Replacing method calls with Interceptors

    Exploring the .NET 8 preview - Part 5

    In this post I look at the C#12 feature, interceptors. I show how and why they're useful, and how the ASP.NET Core minimal API source generator uses them…

  9. Banner image for Fighting with nullable reference types in Razor Pages

    Fighting with nullable reference types in Razor Pages

    In this post I discuss C#'s nullable reference types in the context of Razor Pages, why they don't play nicely together and how to improve the experience.…

     in  Razor PagesC#
Andrew Lock | .Net Escapades
Want an email when
there's new posts?