Generic Host IHosted Service with Lifecycle and Multiple Services

Опубликовано: 27 Март 2026
на канале: D.B. Coder
446
8

This video is the second instalment in our look at the Generic Hots for .NET. In particular, we look at hosting multiple services and how to overcome the complexities of working with async API's in the hosted services.

00:00 Intro
00:21 Single Service Synchonously Executed
04:52 Multiple Services
07:23 Async - Single Service
09:39 Async - Multiple Services
11:11 Orchestration of async cancellation tokens
13:02 RunConsoleAsync convenience method
13:28 Outro

Please don't forget to like the video and subscribe to my channel.

#csharp #dotnet #ihost #ihostedservice