site image
Andrew Lock avatar

Andrew Lock

Dependency Injection
  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 Built in options for running async tasks

    Built in options for running async tasks

    Running async tasks on app startup in ASP.NET Core - Part 1

    In this post I look at the problem of running one-off tasks asynchronously on app startup in ASP.NET Core, and explore the pros and cons of each option…

  5. Banner image for Running async tasks on app startup in ASP.NET Core

    Running async tasks on app startup in ASP.NET Core

    In this series I look at the problem of running one-off tasks asynchronously on app startup. I explore the options and discuss pros and cons of each…

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

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

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

  9. 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()…

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