site image
Andrew Lock avatar

Andrew Lock

Dependency Injection
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  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 Reducing initial request latency by pre-building services in a startup task in ASP.NET Core

    Reducing initial request latency by pre-building services in a startup task in ASP.NET Core

    In this post I show a startup task that pre-builds all the services registered in the DI container to reduce the duration of the first request to the app.…

     in  ASP.NET Core Dependency Injection
  5. Banner image for Using health checks to run async tasks in ASP.NET Core

    Using health checks to run async tasks in ASP.NET Core

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

    In this post I describe an approach to running tasks on startup that uses IHostedService to run the tasks and exposes their status using health checks…

  6. Banner image for Feedback on async task examples and another possible solution

    Feedback on async task examples and another possible solution

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

    In this post I discuss some feedback on my previous posts about running async tasks on startup, including why database migrations were a poor example…

  7. Banner image for Two approaches for running async tasks

    Two approaches for running async tasks

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

    In this post I show two approaches for running tasks asynchronously on startup. Each approach allow registering tasks using DI, but have different trade offs…

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

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

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