site image
Andrew Lock avatar

Andrew Lock

  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 Localising the DisplayAttribute in ASP.NET Core 1.1

    Localising the DisplayAttribute in ASP.NET Core 1.1

    In this post, I recap localisation in ASP.NET Core, and see how localising the DisplayAttribute changed in ASP.NET Core 1.1. Spoiler alert - it just works!…

  5. Banner image for When you use the Polly circuit-breaker, make sure you share your Policy instances!

    When you use the Polly circuit-breaker, make sure you share your Policy instances!

    In this post I'll outline an issue I had creating a Polly circuit-breaker recently, how I did it initially, why it didn't work, and what I should have done!…

     in  Polly
  6. Banner image for Controller activation and dependency injection in ASP.NET Core MVC

    Controller activation and dependency injection in ASP.NET Core MVC

    In this post, I'll describe how controllers are created in ASP.NET Core MVC using the IControllerActivator and the options available out of the box.…

  7. Banner image for Four ways to dispose IDisposables in ASP.NET Core

    Four ways to dispose IDisposables in ASP.NET Core

    This post presents the options for disposing services in ASP.NET Core: manually; using the DI container; with RegisterForDispose; or IApplicationLifetime.…

  8. Banner image for Automatically validating anti-forgery tokens in ASP.NET Core with the AutoValidateAntiforgeryTokenAttribute

    Automatically validating anti-forgery tokens in ASP.NET Core with the AutoValidateAntiforgeryTokenAttribute

    This post shows how to apply the AutoValidateAntiforgeryTokenAttribute globally to automatically protect all dangerous action methods from CSRF attacks.…

     in  ASP.NET CoreSecurityCSRF
  9. Banner image for Defining custom logging messages with LoggerMessage.Define in ASP.NET Core

    Defining custom logging messages with LoggerMessage.Define in ASP.NET Core

    In this post I take a look at one of the helper methods in the ASP.NET Core logging library, and how you can use it to efficiently log messages in your app…

     in  ASP.NET CoreLogging
Andrew Lock | .Net Escapades
Want an email when
there's new posts?