site image
Andrew Lock avatar

Andrew Lock

Generic Host
  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 Building a middleware pipeline with WebApplication

    Building a middleware pipeline with WebApplication

    Exploring .NET 6 - Part 4

    In this post I look at some of the code behind WebApplication, and focus on how the middleware and endpoints are configured…

  5. Banner image for Controlling IHostedService execution order in ASP.NET Core 3.x

    Controlling IHostedService execution order in ASP.NET Core 3.x

    In this post I show how to control whether your IHostedService runs before or after the GenericWebHostService starts the Kestrel HTTP server…

  6. Banner image for Extending the shutdown timeout setting to ensure graceful IHostedService shutdown

    Extending the shutdown timeout setting to ensure graceful IHostedService shutdown

    In this post I describe a problem where you get an exception when shutting down an app that used IHostedService, when the service takes too long to shut down.…

  7. Banner image for Introducing IHostLifetime and untangling the Generic Host startup interactions

    Introducing IHostLifetime and untangling the Generic Host startup interactions

    Exploring ASP.NET Core 3.0 - Part 5

    In this post I introduce the new IHostLifetime interface and look at the interactions involved in the ASP.NET Core generic host startup and shutdown processes…

     in  ASP.NET Core .NET Core 3.0 Generic Host
  8. Banner image for Adding Serilog to the ASP.NET Core Generic Host

    Adding Serilog to the ASP.NET Core Generic Host

    In this post I introduce the Serilog.Extensions.Hosting package, discuss why it's necessary, and describe how to use it to add Serilog to a generic host app…

  9. Banner image for The ASP.NET Core Generic Host: namespace clashes and extension methods

    The ASP.NET Core Generic Host: namespace clashes and extension methods

    In this post I discuss the generic host introduced in ASP.NET Core 2.1, and how its different namespace can cause problems for existing code.…

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