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 Generating .editorconfig files automatically using IntelliCode

    Generating .editorconfig files automatically using IntelliCode

    In this post I show how to install the IntelliCode extension in Visual Studio, and how to use it to generate an EditorConfig file from your code.…

     in  Visual Studio
  5. Banner image for Creating singleton named options with IOptionsMonitor

    Creating singleton named options with IOptionsMonitor

    In this post I introduce the IOptionsMonitor interface, and show how you can use it in place of IOptionsSnapshot to create Singleton named options…

  6. Banner image for Simplifying dependency injection for IConfigureOptions with the ConfigureOptions() helper

    Simplifying dependency injection for IConfigureOptions with the ConfigureOptions() helper

    In this post I show how to use ConfigureOptions() to automatically register all the IConfigureOptions interfaces implemented by a type with the DI container…

  7. Banner image for Delaying strongly-typed options configuration using PostConfigure in ASP.NET Core

    Delaying strongly-typed options configuration using PostConfigure in ASP.NET Core

    In this post I show how to use PostConfigure() with strongly-typed options to run configuration actions after all other Configure() actions are applied.…

  8. Banner image for Configuring named options using IConfigureNamedOptions and ConfigureAll

    Configuring named options using IConfigureNamedOptions and ConfigureAll

    In this post I look at how to configure named options that require injected services and how to configure all named options at once using ConfigureAll()…

  9. Banner image for The dangers and gotchas of using scoped services in IConfigureOptions

    The dangers and gotchas of using scoped services in IConfigureOptions

    In this post I look at the problems you can hit with strongly-typed settings when you inject Scoped services into IConfigureOptions, and how to avoid them…

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