Worker Services in .NET Core (Background Services) @Matlus
Worker Services in .NET Core (Background Services)  @Matlus
Uploaded July 2020 | Updated November 2026, 2 hours ago
Background tasks with hosted services in ASP.NET Core. In ASP.NET Core, background tasks can be implemented as hosted services. A hosted service is a class with background task logic that implements the IHostedService interface. BackgroundService is a base class for implementing a long running IHostedService.

Chapter Markers
00:00 Introduction
00:57 What is a Hosted Service
04:02 Starting with the code - Creating yout first Worker Service
04:41 Inroducing the Project Template and the parts an pirces
07:45 Explanation of the StartAsync, ExecuteAsync and StopAsync methods
11:40 Building our own Background service by Implementing IHostedService
22:37 Things to think about when deciding to use Worker Services
26:22 Building a RabbitMQ Subscriber Worker Service
42:52 Converting a Worker Service to a Windows Service
46:38 Registering the Worker Service as a Windows Service
52:45 Adding the Worker Service to an ASP.NET Core application
53:17 Stopping and Deleting the Windows Service
53:50 Adding an ASP.NET Core Web API project to the Solution
54:20 Registering and Testing the Worker Service

The source code for solution presented in this video can be found here:
github.com/matlus/WorkerService.NET-Core More articles and Programming With Intent chapters: matlus.com
Worker Services in .NET Core (Background Services)So You Think You Know C#? Generics Under the hoodUnit Testing RebootedElectronic Inginition System using an Arduino UNOSo You Think You Know C#? Constants & Default Parameter ValuesC# Performance - Branch PredictionUnit Test Challenge - 1 (L100)Live Session - ASP.NET Core SignalR, Worker Services, Message BrokersShiv Kumar Live StreamPlans For The Channel 2019Async Await in C# 5 Part 2Design Nugget: Evolution To Strategy
Shiv Kumar |

Worker Services in .NET Core (Background Services)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER